public static void saveTiles(final ScrabbleBoard board, File file) {
        try {
            if (!file.exists()) {
                file = new File(file.getParentFile(), (file.getName() + ".game"));
                file.createNewFile();
            }
            try (final FileWriter writer = new FileWriter(file)) {
                for (int row = 0; row < board.getAllTiles().length; row++) {
                    for (int column = 0; column < board.getAllTiles()[row].length; column++) {
                        final String letter = board.getLetterAt(row, column);
                        if (letter != null && !letter.equals(" ")) {
                            writer.write(row + "#" + column + "#" + letter + ", ");
                        }
                    }
                }
            }
        } catch (final IOException ex) {
            System.err.println("Unable to save tiles!");
        }
    }