private void parseln(String line){
		if(isGameType(line)){
			String gtype[] = line.split(" ");
			gt = GameType.valueOf(gtype[1]);
		}else if(isHorizon(line)){
			String hor[] = line.split(" ");
			_horizon = Integer.decode(hor[1]);
		}else if(isVertex(line)){
			String vert[] = line.split(" ");
			_vertices =  new Vector<Vertex>(getVertex(vert));
			for(int i=1;i<=getVertex(vert);++i)
				_vertices.add(new Vertex(i,Integer.decode(vert[i+1])));
		}
		else if(isEdge(line)){
			String edge[] = line.split(" ");
			if(isMissingVertex(edge)){
				System.out.println("Missing vertex");
				return;

			}
			if(isNegativeWeight(edge)){
				System.out.println("Weight must be non negative");
				return;
			}
			//Edge is fine
			addEdge(getFirstVertex(edge),getSecondVertex(edge),Integer.decode(getEdgeWeight(edge)));
		}else if(isAgent(line)){
			addAgent(line.split(" "));
		}
	}