Change map height
Refactor code