Simple AI and moving movement to velocity-based and defined in objects.
Fix warnings, small cleanup.