public void init(){
		
			State StartMenu = new StartMenu(0,3, width, height, scale, key);
			State MapMenu = new MapMenu(1,3, width , height, scale, key);
			State OptionMenu = new OptionMenu(2, 3, width, height, scale, key);
			//ingame menu
			State Map1 = new MapState(4, 0, width, height, scale, key, mouse, Level.map1);
			
			states[0] = StartMenu;
			states[1] = MapMenu;
			states[2] = OptionMenu;
			
			states[4] = Map1;
			
			StartMenu.init();
			MapMenu.init();
			OptionMenu.init();
			
	}