update MovePlayer function