The photo shows just fine. You did good.
There is a lot of bad information on the Internet. The use of those smoke alarm batteries for anything but smoke alarms is a great example. It takes voltage and sufficient current to run a motor. Those batteries do have 9V, but their current capabilities are very low. If they work at all it is for a short time. This forum has literally hundreds, if not thousands, of examples of how poor they are for Arduino projects.
That crappy ancient and inefficient L298 motor driver does not help the situation.