added move, updateXpos, and updateYpos methods