public void update() {
		for(int i = 0; i < mobs.size(); i++) {
			Mob m = mobs.get(i);
			if(m instanceof REnemy || m instanceof FEnemy) {
				if(m.getX() <= 0) {
					removeMob(m);
					clearMobs();
					Game.state = State.END;
				}
			}
			if(m instanceof Projectile) {
				if(m.getX() >= Game.WIDTH) {
					removeMob(m);
				}
			}
		}
		for (int i = 0; i < mobs.size(); i++) {
			Mob m = mobs.get(i);

			m.update();
		}
		player.update();
	}