@Override
    public void paintComponent(Graphics G){
        super.paintComponent(G);
        if(started){

        //button building
            G.drawImage(BuildImages[0], 578, 0, null);
            G.drawImage(BuildImages[1], 578, 80, null);
            //G.drawImage(BuildImages[2], 578, 498, null);
            G.drawString("", 646, 505);
            
            //selected image and button drawing
            if(!terrainFlag)
            G.drawImage(GameImages[6], mouseX*24, mouseY*24, null);
            
            if(buttonSelected){
                if(selection.equals("MG"))
                G.drawImage(BuildImages[2], 578, 0, null);
                else if (selection.equals("LA"))
                G.drawImage(BuildImages[2], 578, 80, null);
            }

            this.repaint();
        }//end if(started)
    }//end paintComponent