Maps now use player.availableTerrain, not partial map.  Map generated with global.mapGenerated variable.
Refactored draw maps into views/main.js