@Override
	public Event next() {
		String itemInput = null;
		try {
			itemInput = br.readLine();
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		if(input == null || input.equals("")){
			
			return new UserHomeState(as, input);
		}
		
		else{
			try{
				as.bid(name, Integer.parseInt(itemInput));
			}
			catch(Exception e){
				return new SearchResultsState(as, name, itemInput);
			}
			return new SearchResultsState(as, name, input);
		}
	}