implemented the negamax algorithm and a (too) simple heuristic evaluation function