adding code for minesweeper challenge