private void generateGame() {
        if (this.tileSize8.isSelected())
            Core.TILESIZE = 8;
        else if (this.tileSize16.isSelected())
            Core.TILESIZE = 16;
        else if (this.tileSize24.isSelected())
            Core.TILESIZE = 24;
        else if (this.tileSize32.isSelected())
            Core.TILESIZE = 32;

        Core.currentGame = Core.gameGenerator.generate((int) this.sizeSlider.getValue(), (int) this.bariersSlider.getValue(), (int) this.enemiesSlider.getValue(), (int) this.boosterSlider.getValue());
        this.canvas.draw(Core.currentGame);
        this.startButton.disableProperty().set(false);

    }