Algorithms of Chess Engine