added corrected mark_doors and mark_locations