Refactored some stuff to make way for terrain and room generators.