public void paint(Graphics g) {
        super.paint(g);
        
        if (ingame) {
            for (int i = 0; i < BALL_TOTAL; ++i)
            {
                Ball curBall = balls[i];
                if (!curBall.isLost())
                    g.drawImage(curBall.getImage(), curBall.getX(), curBall.getY(),
                            curBall.getWidth(), curBall.getHeight(), this);
            }
//            print my player
            g.drawImage(myPlayer.getImage(), myPlayer.getX(), myPlayer.getY(),
                myPlayer.getWidth(), myPlayer.getHeight(), this);
//            List<PlayerMP> allPlayers = new ArrayList<PlayerMP>(); 
//            allPlayers = socketClient.getConnectedPlayers();
//            System.out.println(allPlayers.size());
//            PRINT other player
            for(PlayerMP player : connectedPlayers) {
              if(!player.getUsername().equalsIgnoreCase(myPlayer.getUsername())) {
                g.drawImage(player.getImage(), player.getX(), player.getY(),
                    player.getWidth(), player.getHeight(), this);
              }
            }
            for (int i = 0; i < BRICK_TOTAL; i++) {
                if (!bricks[i].isDestroyed())
                    g.drawImage(bricks[i].getImage(), bricks[i].getX(),
                                bricks[i].getY(), bricks[i].getWidth(),
                                bricks[i].getHeight(), this);
            }
        } else {

            Font font = new Font("Verdana", Font.BOLD, 18);
            FontMetrics metr = this.getFontMetrics(font);

            g.setColor(Color.BLACK);
            g.setFont(font);
            g.drawString(message,
                         (Commons.WIDTH - metr.stringWidth(message)) / 2,
                         Commons.WIDTH / 2);
        }


        Toolkit.getDefaultToolkit().sync();
        g.dispose();
    }