Created MapManager.cs.
Moved relative code to MapManager.cs.