Added Mob AI, and done some small code changes.