Map Generation Stuff and lua