There are several formats of cricket, and each has different ways to win. But the main of every match is to score more runs in four innings than the opposite team.