public void render(Graphics g)
    {
        //Renders the background image
        g.drawImage(bg, 0, 0, null);
        //Renders all buttons
        for(Integer i : buttonMap.keySet())
        {
            buttonMap.get(i).render(g);
        }
        for(int i = 0; i < BCOUNT; i++)
        {
            buttonArray[i].render(g);
        }
        //Renders all bars
        for(Integer i : barMap.keySet())
        {
            barMap.get(i).render(g);
        }
        //Displays cSelect unit's info
        if(cSelect != null)
        {
            g.setColor(Color.BLACK);
            g.setFont(new Font("Arial", Font.PLAIN, 12));
            g.drawString(line1, 400, 430);
            g.drawString(line2, 400, 450);
            g.drawString(line3, 400, 470);
            g.drawString("Stats:", 400, 500);
            g.drawString(line4, 440, 510);
            g.drawString(line5, 440, 530);
        }
    }