Moved all unit update and draw code into the map object.