Minimax working, but passing last test.