General code cleanup and added GameManager

Cleaned up the map into one gameobject, merged all of the functions into one function and