@Override
	public Event next() {
		String input = null;
		try {
			input = br.readLine();
		} catch (IOException e) {
			
			e.printStackTrace();
		}
		//alters state
		if(input == null || input.equals("")){
			return new DefaultState(as);
		}
		if(input.equalsIgnoreCase("add")){
			return new AuctionCreateState(name, as);
		}
		else{
			
			return new SearchResultsState(as, name, input);
		}
	}