public static void main (String args[]) throws Exception{
        ConnectionFrames playerWindow = new ConnectionFrames();
        playerWindow.run();
        Ball ball = new Ball();
        while(playerWindow.connectionType == null);
        System.out.println(playerWindow.connectionType);
        //ball.run();
        while(playerWindow.connectionType.equals("server")){
            System.out.println("APP: Im now a Server");
            playerWindow.sleep(1000);
        }
        while(playerWindow.connectionType.equals("client")){
            System.out.println("APP: Im now a Client");
            playerWindow.sleep(1000);
        }
    }