Infinite games and chain conditions