Change the tail movement

fixed an issue with the way the tail was moving, or not moving when it
should.
some cleaning up

still a couple issues but its working, mostly.