You don't need a Boolean if its while you are touching
On touched family, family set startx to self.x, set starty to self.y
Is touching family, family set x to startx, y to starty
->set x to self.x+random(-2,2), set y to self.y+random(-2,2)
On touch end, family set x to startx, set y to starty