A* kinda working