Don't NegaMax if checkmate position

Also fix AI side