Python Implementation of Minesweeper