Added Scala negamax algorithm