private AbstractGame createGame(Cell[][] board, ModeEnum mode, BoardTypeEnum boardType) {
        Integer[] survives = mode.getSurvives();
        Integer[] revives = mode.getRevives();
        if (boardType == BoardTypeEnum.WALLOFDEATH) {
            return new WallOfDeathGame(board, survives, revives);
        } else {
            return new PacmanGame(board, survives, revives);
        }
    }