private void renderPlayer(GameContainer container, StateBasedGame game, Graphics g, Player player, Color color,
            float xActionBar) throws SlickException {
        g.setColor(color);
        g.setLineWidth(5);
        g.drawRect(100 + player.getXCursorIndex() * 100, player.getYCursorIndex() * 100, 100, 100);
        g.fillRect(xActionBar - 25, 5, 50,
                (float) player.actionCount / Player.MAX_ACTION_COUNT * (container.getHeight() - 10));
        g.setColor(Color.black);
        g.drawRect(xActionBar - 25, 5, 50,
                (float) player.actionCount / Player.MAX_ACTION_COUNT * (container.getHeight() - 10));
    }