public void handleMessageFromServer(Object obj) 
		{
			if ( obj instanceof Updater)
			{ 
				Updater update = (Updater) obj;
				
				String command = update.getCommandMessage();
				
				if ( command != "")
					try
					{
						serverCommandMessage(command);
					}
					catch (IOException e)
					{
						clientUI.display("[ERROR] Could not parse server command message.", Color.LIGHT_GRAY);
						e.printStackTrace();
					}
				else // Updater should update the opponent's board
					opponentGame.getBoard().updateBoard(update);
			}
			else if ( obj instanceof String[])
			{ //the list of clients was sent from the server to update it locally
				playerList.updatePlayerList( (String[]) obj );
			}
			else
			{
				String message = (String) obj;
    			//If the message was a command message, send the instruction for interpretation
    			if (message.startsWith("/"))
    			{
    				try
					{
						commandMessage(message.substring(1));
					}
					catch (IOException e) { clientUI.display("[ERROR] Could not parse command message.", Color.LIGHT_GRAY); }
    			}
    			else if (message.startsWith("[INFO]"))
    			{
    				clientUI.display(message, Color.LIGHT_GRAY);
    			}
    			else if (message.startsWith("[SERVER MSG]"))
    			{
    				clientUI.display(message, Color.CYAN);
    			}
    			else 
    			{
    				clientUI.display(message, Color.WHITE);
    			}
			}
		}