@Override
    public void update(GameContainer gc, StateBasedGame s, int delta) throws SlickException {
        Thread timing = new Thread(new Runnable() {
         @Override
            public void run() {
                if(rectOn) {
                   try {
                       Thread.sleep(200);
                   } catch (InterruptedException ex) {
                       Logger.getLogger(MainMenu.class.getName()).log(Level.SEVERE, null, ex);
                   }
                   rectWidth = 3;
                   rectHeight = 15;
                   rectOn = false;
               }else if(!rectOn) {
                   try {
                       Thread.sleep(200);
                   } catch (InterruptedException ex) {
                       Logger.getLogger(MainMenu.class.getName()).log(Level.SEVERE, null, ex);
                   }
                   rectWidth = 0;
                   rectHeight = 0;
                   rectOn = true;
               }
            }   
        });
        timing.start();
        startButton.update(gc);
        quitButton.update(gc);
        
        if(startButton.isClicked()) {
            s.enterState(2);
        ConsoleDisplay.clear();
        ConsoleDisplay.instruct("Welcome to the sim, press space to watch, or"
                + " select a \ncharacter and hit a button to make them do something.");
        }else if(quitButton.isClicked()) {
            gc.exit();
        }
        gc.getInput().clearKeyPressedRecord();
        gc.getInput().clearMousePressedRecord();
    }