added collision detection for tiled maps, not the cleanest solution...