public void render(int xMovement, int yMovement, Renderer gfx) {
        gfx.setOffset(xMovement, yMovement);
        int x1 = xMovement / Tile.SIZE;
        int x2 = (xMovement + gfx.getWidth() + 16) / Tile.SIZE;
        int y1 = yMovement / Tile.SIZE;
        int y2 = (yMovement + gfx.getHeight() + 16) / Tile.SIZE;
        
        for (int y = y1; y < y2; y++) {
            for (int x = x1; x < x2; x++) {
                getTile(x, y).render(x, y, gfx);
            }
        }
        for (Entity e : entities)
            e.render(gfx);
    }