you are correct let me be a little bit more precise. well the code for some reason the ping sensor starts to work but then stops working. like you see the vehicle moving forward but it keeps moving and never stops. then if you reset and try the code while the vehicle is facing the wall it will turn right but once it clears the wall it stops working again untill the next reset. when i say reset i mean reset the arduino board