@Override
    protected void paintComponent(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;
        super.paintComponent(g2);
        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);

        g2.drawImage(background, 0, 0, getWidth(), getHeight(), this);
        g2.setColor(new Color(248, 248, 243));

        g2.setFont(new Font("Arial", 1, 64));
        g2.drawString("Final score:", 800, 480);

        g2.setFont(new Font("Arial", 1, 44));
        g2.drawString(finalScore + " / " + possibleTotal + " (" + percent + "%)", 850, 540);
        if( percent <= 40.0 ){
            g2.drawString("Better luck next time!", 800, 600 );
        }
        else if( percent <= 80.0 ){
            g2.drawString("Not bad!", 850, 600 );
        }
        else if( percent == 100.0 ){
            g2.drawString("Perfect! Nice job!", 800, 600 );
        }
    }