@Override
    public void refresh(RefreshEvent event) {
        Class eventClass = event.getClass();

        if (eventClass == LocalGameRefreshEvent.class) {
            mainPanel.refreshGrid(event);
        } else if (eventClass == TotalGameRefreshEvent.class) {
            mainPanel.refreshRemainingMines(event);
        } else if (eventClass == ChronometerEvent.class) {
            mainPanel.refreshTime(event);
        } else if (eventClass == ResizeEvent.class) {
            Minesweeper.getInstance().resize(event);
            mainPanel.resize(event);
            mainPanel.refreshRemainingMines(event);
            mainPanel.refreshImg(event);
        } else if (eventClass == EndGameEvent.class) {
            mainPanel.refreshRemainingMines(event);
            mainPanel.refreshImg(event);           
        }
    }