Rewrote path solution with Allegro functions
Rewrote path solution with Allegro functions