Minesweeper implementation in Java