@Override
    public void gameEnded(GameView sender, boolean won) {
        sender.setVisible(false);
        CanvasView indicator = getView(INDICATOR_VIEW_ID);
        if (indicator != null) indicator.setVisible(false);

        CanvasView toView;
        if (won) {
            toView = getView(SEQUENCE_CHOOSER_VIEW_ID);
            if (toView != null && toView instanceof SeqChooserView) {
                ((SeqChooserView) toView).reset(sender.getSeqElixirs());
            }
        }
        else toView = getView(GAME_LOST_MENU_VIEW_ID);
        if (toView != null) toView.setVisible(true);
    }