Analysis of the game of chess