@Override
	public Event next() {
		try {
			input = br.readLine();
			
		} catch (IOException e1) {
			
		}
		if(input == null || input.equals(""))
		{
			
			return new UserHomeState(as, name);
		}
		
		else{
			try{
				as.bid(name, Integer.parseInt(input));
			}
			catch(Exception e){
//				System.out.println("something is wrong");
				return new SearchResultsState(as, name, input);
			}
			return new SearchResultsState(as, name, input);
		}
	}