/**
 * The Level Class
 */
class Level {

    /**
     * The Level constructor
     * @param {Number} maxLevels
     */
    constructor(maxLevels) {
        this.levelerElem = document.querySelector(".leveler");
        this.maxLevels   = maxLevels;
        this.level       = 1;
    }



    /**
     * Returns the initial level
     * @returns {Number}
     */
    get() {
        return this.level;
    }

    /**
     * Increases the initial level
     */
    inc() {
        Utils.unselect();
        if (this.level < this.maxLevels) {
            this.level += 1;
            this.show();
        }
    }

    /**
     * Decreases the initial level
     */
    dec() {
        Utils.unselect();
        if (this.level > 1) {
            this.level -= 1;
            this.show();
        }
    }

    /**
     * Sets the initial level
     * @param {Number}
     */
    choose(level) {
        if (level > 0 && level <= this.maxInitialLevel) {
            this.level = level;
            this.show();
        }
    }



    /**
     * Sets the initial level
     */
    show() {
        this.levelerElem.innerHTML = this.level;
    }
}

/**
 * The Level Class
 */
class Level {

    /**
     * The Level constructor
     * @param {Number} maxLevels
     */
    constructor(maxLevels) {
        this.levelerElem = document.querySelector(".leveler");
        this.maxLevels   = maxLevels;
        this.level       = 1;
    }



    /**
     * Returns the initial level
     * @returns {Number}
     */
    get() {
        return this.level;
    }

    /**
     * Increases the initial level
     */
    inc() {
        Utils.unselect();
        if (this.level < this.maxLevels) {
            this.level += 1;
            this.show();
        }
    }

    /**
     * Decreases the initial level
     */
    dec() {
        Utils.unselect();
        if (this.level > 1) {
            this.level -= 1;
            this.show();
        }
    }

    /**
     * Sets the initial level
     * @param {Number}
     */
    choose(level) {
        if (level > 0 && level <= this.maxLevels) {
            this.level = level;
            this.show();
        }
    }



    /**
     * Sets the initial level
     */
    show() {
        this.levelerElem.innerHTML = this.level;
    }
}

Fix an issue with the tetris max level
Fix an issue with the tetris max level
