Implementing it to get data from tiledmap