Line Follower: can my code be optimized?

Jup, those are the electric motors we got, that's also the example the teacher used. We're supposed to construct our car fully by ourselves. I used MDF (medium density fibreboard) as a base.

I'll look into using AA batteries, you're right, 9V batteries probably don't suffice regarding amps.