@Override
	public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException {
		p.doYourThing(gc,gameplayEnvironment);
		gameplayEnvironment.doYourThing(gc);
		if((System.currentTimeMillis() - lastKITick) > 300){
			for(objekt a : gameplayEnvironment.getEnvironment()){
				lastKITick = System.currentTimeMillis();
				if(a instanceof mob && !(a instanceof player)){
					mob m = (mob)a;
					double t = Math.random();
					if(t > 0.5 || m.getEnvironmentCollisionList(gameplayEnvironment).contains(co.COLLISION_LEFT)){
						m.removeDir(co.DIR_LEFT);
						m.setDir(co.DIR_RIGHT);
					}
					else if(t <= 0.5f || m.getEnvironmentCollisionList(gameplayEnvironment).contains(co.COLLISION_RIGHT)){
						m.removeDir(co.DIR_RIGHT);
						m.setDir(co.DIR_LEFT);
					}
				}
			}
		}
	}