Added generateRoom function to the World class.