move and hit test