public void run()
		{
	    	try 
	    	{
	    		
	    		while (true) 
	    		{
	    			System.out.println("WAITING.");
	    			String line = inputLine.readLine();
	    			System.out.println("Line: " + line);
		    		Scanner inputStream = new Scanner(line);
		    		String command = inputStream.next();
		    		
		    		if(command.equals("MESSAGE"))
		    		{
	    				String username = inputStream.next();
	    				Color color = chat.convertColorString(inputStream.next());
	    				String message = inputStream.nextLine() + "\n";
	    				chat.setText(username, color, message);
		    		}
		    		else if(command.equals("START"))
		    		{
		    			chat = new ChatBox(username, output);
		    			game = new GameBox(username, output);
						currState = STATE.GAME;

		    			mainPanel.removeAll();
		    			setupGamePanel();
		    			mainPanel.repaint();
		    			mainPanel.revalidate();
		    		}
		    		else if(command.equals("WORD"))
		    		{
		    			game.startGame(inputStream.nextLine());
		    		}
		    		else if(command.equals("UPDATE"))
		    		{
		    			game.update(inputStream.next());
		    		}
		    		else if(command.equals("DONE"))
		    		{
		    			game.complete();
		    		}
		    		else if(command.equals("SCORE"))
		    		{
		    			timer.start();
		    			round = inputStream.next();
		    			score = inputStream.next();
		    			bank = inputStream.nextLine();
		    		}
		    		else if(command.equals("FINAL"))
		    		{
		    			timer.start();
		    			round = inputStream.next();
		    			scores[0] = inputStream.next();
		    			scores[1] = inputStream.next();
		    			scores[2] = inputStream.next();
		    			bank = inputStream.nextLine();
		    		}
		    		inputStream.close();
	    		}
	    	}
	    	catch (IOException e)
	    	{
	    		
	    	}
		}