rewrote map code, fucked everything
more fixing, things still broken
map sorted, next is collision
collision working