Minimax works perfectly, tests are passing