Worked out how to do acceleration and deceleration. Albeit in 1 dimension. I'll work on two dimensional movement afterwards.