Added some basic AI to the Mainframe. Sorted out some of the collision detection.