when a batsman is out, another comes onto the field to take his place. the innings is over when ten wickets are taken (i.e. ten of the eleven batsmen are out). after this, the team which was the 'fielding' team becomes the 'batting' team. they now have to score more runs than the other team managed to score. if they score more runs before ten wickets are taken, they win. if they do not, the other team wins.