Robotics (Arduino): Optimize this code

Job ID: 33573797

Budget: €8 – €30 EUR

I am using an arduino robot with components:

Arduino Uno

Adafruit Motor Shield v2.3

2x Stepper motors

HC-SR04 ultrasonic sensor with pins: (5V - VCC, 10 - TRIG, 13 - ECHO, GND - GND)

9V batteries

And when i upload my code the robot does nothing where it suppose to find it's way out a physical maze using the shortest route generated. Can anyone find the issues or the missing libraries from the code and optimize it? The code and for further info please let me know so i can provide upon request. Everything is ready and the code is complete but i might be missing something simple.