refactored level map into map model