The games played so far are: Aces vs Flames ($0$ - $0$), Aces vs Bolts ($1$ - $1$), Dodgers vs Flames ($3$ - $0$), Bolts vs Cannons ($2$ - $1$), Dodgers vs Eels ($2$ - $0$), Eels vs Cannons ($2$ - $0$).
Before entering the room, the prisoners number themselves from $0$ to $9$. Upon seeing the numbers on the other prisoners’ hats, each prisoner finds the sum of these numbers.