Added code to flip the tank in the direction it's moving.