@Override
    public void draw(Graphics g) {             
        
        
   
        //Draw Score Card
        g.setFont("Arial", Graphics.BOLD, 25);
        g.setColor(Color.WHITE.getRGB());        
        g.drawString("Score:",GamePanel.GAMEWIDTH+20,70);        
        g.setFont("Arial",Graphics.PLAIN,15);
        if(users!=null){
            for(int i =0; i<users.length;i++)
            {
                if(i==0)g.setColor(new Color(146,208,80).getRGB());
                else if(i==1)g.setColor(Color.CYAN.getRGB());
                else if(i==2)g.setColor(Color.RED.getRGB());
                else if(i==3)g.setColor(Color.ORANGE.getRGB());
                g.drawString(users[i] +": "+scores[i],GamePanel.GAMEWIDTH+40,90+20*i);
                g.setColor(Color.WHITE.getRGB());
            }
        }        

        //Sets the game area
        g.drawRect(5, 5, GamePanel.GAMEWIDTH,GamePanel.GAMEHEIGHT);
        g.setClip(5, 5, GamePanel.GAMEWIDTH, GamePanel.GAMEHEIGHT);   
        g.translate(5, 5);      
        if(gameOver){
            g.setColor(Color.WHITE.getRGB());
            g.setFont("Arial", Graphics.BOLD,60);            
            g.drawString("GameOver!", GamePanel.GAMEWIDTH/2-g.getFontDimension("GameOver!")[0]/2, 100);
            g.drawString(users[winner]+" won the game!", GamePanel.GAMEWIDTH/2-g.getFontDimension(users[winner]+" won the game!")[0]/2, 200);
            g.drawString("", GamePanel.GAMEWIDTH-g.getFontDimension("GameOver!")[0], 100);            
            if(counter>=80){
                client.close();
                client.stop();
                setState(GameStateManager.MULTIPLAYER_CHAT_STATE);
            }
        }
        else{            
            g.rotate(Math.toRadians(90*playerNum), GamePanel.GAMEWIDTH/2+5, GamePanel.GAMEHEIGHT/2+5);        
            for(Paddle p: players) p.draw(g);
            ball.draw(g);       
            g.rotate(Math.toRadians(-90*playerNum), GamePanel.GAMEWIDTH/2+5, GamePanel.GAMEHEIGHT/2+5);
        }
        g.translate(-5, -5);
        g.setClip(0,0,GamePanel.WIDTH,GamePanel.HEIGHT);
        
     
    }