mapGeneration.lua and level.lua Redesign

Rewrote mapGeneration.lua to have most of the features for
mapGeneration. Redesigned level.lua to better suit only rendering and
events.