private void render() {
        BufferStrategy bs = getBufferStrategy();
        if(bs == null){
            createBufferStrategy(3);
            return;
        }

        Graphics g = bs.getDrawGraphics();
        g.setColor(Color.BLACK);
        g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);

        player.renderHud(g);
        for(int i = 0; i < EntityHandler.getEnemies().size(); i++){
            EntityHandler.getEnemies().get(i).render(g);
        }
        player.render(g);

        g.dispose();
        bs.show();
    }