1 public void setValuesAndImages(){
2 for (int x = 0; x < 4; x++){
3 for (int y = 0; y < 4; y++){
4 Tile tile = (Tile) getObjectsAt(x, y, Tile.class).get(0);
5 if (tile != null && tile.getDidCombine()){
6 tile.setValueOfTile();
7 tile.setIndividualImage(tile.getValueOfTile());
8 tile.setDidCombine();
9 }
10 }
11 }
12 }
sorry about not using the code tags. my browser isn't getting along with me.
once it reaches line 5 it stops. The method call of tile.getDidCombine() is just recalling a boolean variable.

