Visual representation of pathfinding algorithms in a maze