fixed unsafe varargs in getBestMove