private void refresh(){
        if (win){      
            bg = draw;
            draw.setColor (Color.BLACK);
            draw.fill();

            draw.setFont      (new Font ("Times New Roman", 1, 70));
            draw.setColor     (Color.WHITE);
            draw.drawString   ("Congratulations", 270, 200);
            draw.drawString   ("You have beat the game!"  , 140, 300);

            draw.setFont      (startButtonFont);
            draw.setColor     (Color.WHITE);
            draw.drawString   ("Press r to restart"  , 350, 500);
            draw.drawString   ("or press esc to exit", 335, 570);
        }
        else if (!restart){
            if (stage == 0){
                bg = splash;
                if (map != null){
                    map.addObject (startButton  , 512, 500);
                    map.addObject (tutButton    , 512, 600);
                    map.addObject (credits      , 970, 750);
                }
            }else if (stage ==  1){
                bg = tutPics[tutPicNum];

                map.addObject (nextButton, 940, 300);
                map.addObject (prevButton, 84, 300);
                map.addObject (backButton, 940, 50);
            }
            else if (stage == -1){
                bg = creditsPic;

                map.addObject (backButton, 940, 50);
            }
        }
        else{
            bg = draw;
            draw.setColor (Color.BLACK);
            draw.fill();

            draw.setFont      (new Font ("Times New Roman", 1, 70));
            draw.setColor     (Color.WHITE);
            draw.drawString   ("GAME OVER", 300, 200);

            draw.setFont      (startButtonFont);
            draw.setColor     (Color.WHITE);
            draw.drawString   ("Press r to restart"  , 350, 400);
            draw.drawString   ("or press esc to exit", 335, 500);
        }
        this.setImage (bg);
    }