A* pathfinder for tile based maps