public void update(){
		
		
		PrevState = state;
		if(PrevState != state) prevState = PrevState;
 		
		init(states[state]);
		states[state].update();
		
		
			
		if(key.escape) state = prevState;
		
	}