Implemented alpha-beta pruning algorithm in the M,N,K game.