Fixed random map generation. Rectangular maps are now oriented correctly.