Moved 'in queue' check out of play_index to separate function is_index_in_queue
Added is_index_in_queue check in remove_from_queue