@Override
    public void onGameOver(boolean won) {
        MainMenu mainMenu = new MainMenu();
        if (won) {
            DbScoreboard scoreboard = new DbScoreboard();
            long score = timer.getTimePassed();
            scoreboard.add(score);
            mainMenu.setScoreText(Timer.longToTimeString(score));
        }
        GameFrame.getInstance().setComponent(mainMenu);
    }