Chess pathfinding