fixed errors in TileMap
func added to tile class