Fixed bugs in Minesweeper