Move map loading script to proper file