removed redundancy with helper playsearch method