Implemented Minimax (with a-b pruning)