Minesweeper | Refactored count_neighbors