added persistent colours and wraparound and velocity change