added random playback and collision avoidance