who invented the game of chess