changed randomMove from distance to timebased