public static void main(String[] args){
		new Drawing();
		ServerSocket listener = null;
			try{
				listener = new ServerSocket(9090);
				Data.socket = true;
			}catch(Exception e){
				Data.socket = false;
			}
			System.out.println(listener);
			try{
				while(true){
					Data.waiting = true;
					Socket socket = null;
					System.out.println("Waiting");
					try{
						socket = listener.accept();
					}catch(Exception e){
						
					}
					Data.waiting = false;
					
					try{
						BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
						
						Data.connected = true;
						
						String xxe = "";
						while((xxe = in.readLine())!=null){
		                	//System.out.println("IN-> "+xxe);
		                	Data.in = xxe;
		                	Data.received = true;
		                	try{
		                		Thread.sleep(9);
		                	}catch(Exception time){}
						}
						
					}catch(Exception e){
						e.printStackTrace();
					}
					Data.in = "0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:";
					Data.connected = false;
					socket.close();
				}
			}catch(Exception e){
				e.printStackTrace();
			}
			Data.waiting = true;
        try {
			listener.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}