Minimax implementation for checkers game