@Override
    public void updateGameState(eGameState state) {
        switch (state) {
            case abort:
                JOptionPane.showMessageDialog(this.getParent(), "Oponent left the current game");
                break;
            case won:
                ImageIcon winIcon = new ImageIcon(PlayingWindow.class.getResource("win.gif"));
                JOptionPane.showMessageDialog(this.getParent(), "", "congratulation!!!", JOptionPane.INFORMATION_MESSAGE, winIcon);
                break;
            case lost:
                ImageIcon lostIcon = new ImageIcon(PlayingWindow.class.getResource("lost.gif"));
                JOptionPane.showMessageDialog(this.getParent(), "", "LOOSER", JOptionPane.INFORMATION_MESSAGE, lostIcon);
                break;
        }
    }