public class GameLauncher {
private static final Logger logger = Logger.getLogger(ClassName.getCurrentClassName());
public static GameController InitGame(Parameters parameters) throws IOException {
logger.info("initialization with parameters " + parameters);
GameModelHistory model = new GameModelHistory(parameters.getFieldSize(), parameters.getWinLineLen());
final PlayersController playersController =
createPlayersController(createStreamCommutator(parameters), parameters.getFirstPlayer());
return new GameController(model, new FieldView(), playersController);