inventor of chess