private void update() {
        if (game_started) {
            try {
                //pass player rectangles to pong
                this.pong.update(this.playerA.getPlayerRectangle(), this.playerB.getPlayerRectangle());
                this.notifyAll("pongUpdate", this.pong.getPongCoordinates());

            //now get player updates
                //this.playerA.getPlayerPosition()
                if (pong.isOutOfLeftBound()) {
                    //server.onMessage("playerScore", 2);
                    rightScore++;
                    stop();
                } else if (pong.isOutOfRightBound()) {
                    //server.onMessage("playerScore", 1);
                    leftScore++;
                    stop();
                } else {
                    notifyAll("pongUpdate", this.pong.getPongCoordinates());
                }

                if (leftScore == 5) {
                    server.onMessage("someoneWon", 1);
                    stop();
                } else if (rightScore == 5) {
                    server.onMessage("someoneWon", 2);
                    stop();
                }
            } catch (RemoteException ex) {
                Logger.getLogger(PongGame.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }