Some world generation magic

Added world generation magic here, till I decide to divide then
elsewhere