public void prepareTiles() { grid.saveTiles(); for (Tile[] array : grid.field) { for (Tile tile : array) { if (grid.isCellOccupied(tile)) { tile.setMergedFrom(null); } } } }
public void saveUndoState() { grid.saveTiles(); undoScore = score; }