Changed LastXval to currentX, added actualMovement