loading map now works and collision detections work