Moved the `loadTMXLevel` function to the levelDirector class (as a private function)