Making the classic game minesweeper in java