Created complex tilemap class