Fixing the map generator bugs, now fully functional!