setting up a queue with active and inactive players and recursion