MightyCode_ABoardGame/ABoardGame/SceneManager.pde
public class SceneManager {
  private Scene currentScene, nextScene = null;


  public SceneManager() {
  }

  public void init() {
    currentScene = new SceneMainMenu(this);
  }

  public void update() {
    if (nextScene != null) {
      currentScene = nextScene;
      nextScene = null;
    }

    currentScene.update();
  }

  public void draw() {
    currentScene.draw();
  }

  public void mousePressed() {
    currentScene.mousePressed();
  }

  public void mouseMoved() {
    currentScene.mouseMoved();
  }

  public void changeScene(Scene nextScene) {
    this.nextScene = nextScene;
  }
}