minimax change return type Move to int