alpha beta pruned negamax function implemented. works on 2 ply, testing incomplete for deeper ply