mapgen works but still bugs. commit prior to minor refactor