There is way more than a human can hold in their head, so games are interesting and not predetermined even at expert level. Try watching a game with commentary, such as a world championship tournament, and you'll see the kinds of thought processes that experts go through.