added a star pathfinding