Added structure for game loop code to determine who is at bat.