@Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D) g;

        //g2.setColor(Color.WHITE);
        //g2.drawRect(0,0,BaseGUI.MAXX,BaseGUI.MAXY);
        
        if (this.numbers.size() == 0) {
            this.bg.paintIcon(this, g2, 0, 0);
        }
        int loc = 5;
        for (int i = 0; i != this.numbers.size(); i++) {
            g2.setColor(Color.BLACK);
            if (this.blue.contains(i)) {
                g2.setColor(Color.BLUE);
            }
            if (this.red.contains(i)) {
                g2.setColor(Color.RED);
            }
            if(this.yellow.contains(i))
            {
                g2.setColor(Color.YELLOW);
            }
            if (this.compare.contains(i)) {
                g2.setColor(Color.BLUE);
            }
            if (this.swap.contains(i)) {
                g2.setColor(Color.RED);
            }
            if (this.yellowtemp.contains(i)) {
                g2.setColor(Color.YELLOW);
            }
            g2.fillRect(loc, Core.MAXY - 10 - this.numbers.get(i), 10, this.numbers.get(i));
            loc += ((Core.MAXX-10)/139);
        }
        this.compare.clear();
        this.yellowtemp.clear();
        this.swap.clear();
    }