@Override
    public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException {
        g.setAntiAlias(true);
        
        g.setColor(new Color(255, 255, 255));
        
        if (!terrainMode) {
            g.setColor(new Color(209, 217, 224));
        }
        g.fillRect(0, 0, Game.width, Game.height);
        
        if (terrainMode) {
            for (int i = 0; i < Terrain.energy.length; i++) {
                for (int j = 0; j < Terrain.energy[0].length; j++) {
                    g.setColor(new Color(0F, 0F, 0F, Terrain.getEnergy(i, j) / (Terrain.starting * 2F)));
                    g.fillRect(i * 20, j * 20, 20, 20);
                }
            }
        }
        
        for (int i = 0; i < entities.size(); i++) {
            Entity e = entities.get(i);
            
            if (!terrainMode) {
                e.render(container, game, g);
            }
        }
    }