src/gameplayer/controller/Controller.java
public void levelWon(int level) {
        if (level >= GameManager.getNumOfLevels()) {
            gameOver();
        } else {
            updateLevel.accept(level + 1);
            openLevelSelector.accept(myStage);
        }
    }
/**
     * Method to call when a level has been won and the level selector needs to appear again
     *
     * @param level - level won
     */
Method to call when a level has been won and the level selector needs to appear again
@param level - level won
Method to call when a level has been won and the level selector needs to appear again @param level - level won
public void levelWon(int level) {
        if (level >= GameManager.getNumOfLevels()) {
            gameOver();
        } else {
            updateLevel.accept(level + 1);
            openLevelSelector.accept(myStage);
        }
    }
public void levelWon ( int level ) { if ( level >= GameManager . getNumOfLevels ( ) ) { gameOver ( ) ; } else { updateLevel . accept ( level + 1 ) ; openLevelSelector . accept ( myStage ) ; } }
Method to call when a level has been won and the level selector needs to appear again
 @param level - level won
Method to call when a level has been won and the level selector needs to appear again @param level - level won