Pathfinding for available tiles through the command manager