TmxMap refactorization