public void render(GameContainer gc, Graphics g) throws SlickException {
    // clears
    g.clear();
    // backgrond
    g.setColor(new Color(103, 194, 240));
    g.fillRect(0, 0, MainApp.SCREEN_WIDTH, MainApp.SCREEN_HEIGHT);

    // compute shift right
    shiftRight += computeShiftRight();

    // draws every object
    ObjectBoilerplate object;
    for (int x = 0; x < WORLD_LENGTH; x++) {
      for (int y = 0; y < WORLD_HEIGHT; y++) {
        object = tileArray[x][y];
        if (object != null) {
          object.render(shiftRight);
          g.setColor(Color.red);
          //                    g.fillRect(object.rect.getX() - shiftRight, MainApp.SCREEN_HEIGHT -
          // object.rect.getY(), object.rect.getWidth(), object.rect.getHeight());
        }
      }
    }
    //        g.setColor(Color.red);
    //        g.fillRect(player.rect.getX() - shiftRight, MainApp.SCREEN_HEIGHT -
    // player.rect.getY(), player.rect.getWidth(), -player.rect.getHeight());
    player.render(shiftRight);
  }