private void listener() throws IOException, WarDoesNotExistException, WarAlreadyFinishedException, WarAlreadyStartedException, InvalidUnitNameException, PlaceNotFreeToPlaceUnitException, UnitCoordinatesOutsideMatrixException{
		boolean alive = true;
		while(alive){
			String inputLine;
			inputLine = br.readLine();
			StringTokenizer tokenizer = new StringTokenizer(inputLine);
			String request= tokenizer.nextToken();
			/////////////////////////////////////////////////////////
			System.out.println("LLamado por: " + s.getInetAddress());
			System.out.println("Mensaje : "+ inputLine);
			/////////////////////////////////////////////////////////
			switch(request){
				case "ListMsg" :
					handleWarListMsg();
					break;
				case "CreateWarMsg":
					creatingWar();
					break;
				case "StartMsg":
					handleStart();
					break;
				case "MovementMsg":
					handleShot();
					break;
				case "SurrenderMsg":
					handleSurrender();
					break;
				case "ExitMsg":
					System.out.println("game.ExitArmy(armyID,warID)");
					break;
				case "JOIN":
					handleJoin();
					break;
				case "DISCONNECT":
					br.close();
					outToClient.close();
					s.close();
					alive = false;
					break;
				default :
					break;
			}
	
		}
	}