fixed spawning direction bug; added a couple of parameters for the map gen