refactured MinesweeperGame.cs