private int parseCommand(String command) throws IOException {
		command = command.toLowerCase();
		if (command.startsWith("exit")) {
			System.out.println("Good Bye!");
			System.exit(0);
		} else if (command.startsWith("help")) {
			this.help();
		} else if (command.startsWith("search")) {
			this.parseSearch(command);
		} else if (command.startsWith("vote")) {
			this.parseVote(command);
		} else if (command.startsWith("add")) {
			this.parseAdd(command);
		} else {
			this.help();
		}
		return 0;
	}