private boolean processCommand(Command command) 
    {
        boolean wantToQuit = false;

        if(command.isUnknown()) 
        {
            System.out.println("I don't know how to " + parser.getInput() + "!");
            return false;
        }

        String commandWord = command.getCommandWord();
        if (commandWord.equals("help")) 
        {
            printHelp();
        }
        else if (commandWord.equals("go")) 
        {
            goRoom(command);
        }
        else if (commandWord.equals("use"))
        {
            use(command);
        }
        else if (commandWord.equals("quit")) 
        {
            wantToQuit = quit(command);
        }
        else if (commandWord.equals("look"))
        {
            look(command);
        }
        else if (commandWord.equals("get"))
        {
            pickUp(command);
        }
        else if (commandWord.equals("soda"))// added to see if money class would be needed
        {
            buySoda(command);
        }       
        // else command not recognised.
        return wantToQuit;
    }