private void paintBalls(Graphics g)
    {
        for (Ball b: com.github.abalone.elements.Board.getInstance().getBalls() )
        {
            Coords ballCoords = b.getCoords();
	    Coords coords;
	    if ( this.reversed )
	        coords = new Coords(-ballCoords.getRow(), ballCoords.getCol());
            else
	        coords = new Coords(ballCoords);
            Point point = this.getPoint(coords);
            switch ( b.getColor() )
            {
                case WHITE:
                    this.whiteBall.paintIcon(this, g, point.x, point.y);
                break;
                case BLACK:
                    this.blackBall.paintIcon(this, g, point.x, point.y);
                break;

            }
            if ( this.selectedBalls.contains(ballCoords) )
            {
                this.selection.paintIcon(this, g, point.x, point.y);
            }
        }
    }