Minor code clean-up, some polishing on movement and AI.