Changed LastXval to currentX, added actualMovement
fixed a few things
Merge branch 'danthompson41-master'