game of chess invented