@Override
	public void update(GameContainer gc, StateBasedGame sbg, int delta)
			throws SlickException {
	     int posY = Mouse.getY();
	     
	     //Escape button below
	     if((posY<gc.getHeight()/3))
	     {
	         if(Mouse.isButtonDown(0)){
	        	 Barnacle.appgc.setDisplayMode(1280, 720, false);
	        	 sbg.enterState(Barnacle.startMenu);
	         }
	      }
	     else if((posY<gc.getHeight()/3*2))
	     {
	         if(Mouse.isButtonDown(0)){
	        	 Barnacle.appgc.setDisplayMode(1280, 720, true);
	        	 sbg.enterState(Barnacle.startMenu);
	         }
	      }
	     else if((posY>gc.getHeight()/3*2))
	     {
	         if(Mouse.isButtonDown(0)){
	        	 Barnacle.appgc.setDisplayMode(1600, 900, true);
	        	 sbg.enterState(Barnacle.startMenu);
	         }
	      }
	     
	        Input input = gc.getInput();
			if(input.isKeyDown(Input.KEY_ESCAPE)){
				System.exit(0);
			}
	}