Added wrapparound in the x direction as a test
Fixed tail not being immediately added to the back