How is position, velocity and acceleration related? Also added wrapping at window boundaries. left - right: turns up - down: changes the speed.