Added MapGenerator class. Some small fixes to the UI.