Programmer not responding error message

Hello, I'm new to programming and using Arduino and I'm trying to do this project for school. I hope someone could help me fix whatever problem I am having. I am using the elegoo smart robot car kit v3.0 and I added some code near the end for my project. However, whenever I try to upload my code I get an error message that says something like "programmer not responding".

Full error message:

My code is:

Thanks!

Please tell us what settings you used when programming the Arduino. What programmer you used and which board you used?

(deleted)

Can you upload without adding the code?
Can you upload blinky?

You have...

#include "hardwareSerial.h"

...twice, once in the middle of your source.
That's not correct, although it shouldn't result in an upload error.