@Override
    public void run() {
        //Während dem das Spiel läuft
        while (!Thread.interrupted()) {
            try {
                GameModel tempModel = (GameModel) in.readObject();
                tempModel.changePlayer();

                if (tempModel.getPlayer2().equals(tempModel.getActualPlayer())) {
                    this.clientGui.disableColumnButtons();
                } else {
                    this.clientGui.enableColumnButtons();
                }

                this.clientGui.update(tempModel, null);

                if (tempModel.isInvalid()) {
                    this.clientGui.invalidMove();

                }
                if (tempModel.isDraw()) {
                    this.clientGui.draw();
                }
                if (tempModel.isLose()) {
                    this.clientGui.youLose();
                }
                if (tempModel.isWon()) {
                    this.clientGui.youWin();
                }

            } catch (IOException ex) {
                System.out.println("IOException");
                Logger.getLogger(ClientPlayer.class.getName()).log(Level.SEVERE, null, ex);
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(ClientPlayer.class.getName()).log(Level.SEVERE, null, ex);
            }

        }
        try {
            this.socket.close();
        } catch (IOException ex) {
            Logger.getLogger(ClientPlayer.class.getName()).log(Level.SEVERE, null, ex);
        }
    }