Python code for a Minesweeper Game