Added UpdatePosition to perform the moving calculations