nextMove() implementation to choose best move