/// <summary>
        /// Provjerava da li je određena ćelija okružena (horizontalno i vertikalno) sa crnim poljima.
        /// </summary>
        /// <param name="row"></param>
        /// <param name="column"></param>
        /// <returns></returns>
        internal bool IsCellSurroundedWithBlack(int row, int column)
        {
            int filledCells = 0;

            if ((row - 1) >= 0)
            {
                if (solver.CellIsBlack((row - 1), column))
                {
                    ++filledCells;
                }
            }
            else if ((row - 1) < 0)
            {
                ++filledCells;
            }

            if ((row + 1) < solver.gridHeight)
            {
                if (solver.CellIsBlack((row + 1), column))
                {
                    ++filledCells;
                }
            }
            else if ((row + 1) >= solver.gridHeight)
            {
                ++filledCells;
            }

            if ((column - 1) >= 0)
            {
                if (solver.CellIsBlack(row, (column - 1)))
                {
                    ++filledCells;
                }
            }
            else if ((column - 1) < 0)
            {
                ++filledCells;
            }

            if ((column + 1) < solver.gridWidth)
            {
                if (solver.CellIsBlack(row, (column + 1)))
                {
                    ++filledCells;
                }
            }
            else if ((column + 1) >= solver.gridWidth)
            {
                ++filledCells;
            }

            if (filledCells == 4)
            {
                return(true);
            }
            return(false);
        }
 private bool FourBlacks()
 {
     for (int i = 0; i < (solver.gridHeight - 1); i++)
     {
         for (int j = 0; j < (solver.gridWidth - 1); j++)
         {
             if (solver.CellIsBlack(i, j) && solver.CellIsBlack(i, (j + 1)) &&
                 solver.CellIsBlack((i + 1), j) && solver.CellIsBlack((i + 1), (j + 1)))
             {
                 return(true);
             }
         }
     }
     return(false);
 }