updated map class to extend TiledMap

Made changes in main file to use the changes
No regressions! ;)