strange behavior on my first robot with L298

I realize you have the battery problem solved, at least it sounds like it. just figured I would throw this in for future battery trouble shooting: if you think there might be a battery issue, hook it up to a power supply from the wall with converter (be sure to check its the motors voltage so you don't break something). If everything works then it's either the wrong battery or a low/dead battery.