adding end-game to minesweeper.