Fix bug with recursion when join and leave game multiple times