function result = possibleChooseUpdate( state, input )
%initialize the result, a stuttering output
result = {state, 'absent'};

switch (state)
    case 'happy'
        switch(input)
            case 'pet'
                result = {state, 'purrs'};
            case 'feed'
                result = {state, 'throws up'};
            case 'time passes'
                result = {'hungry', 'rubs'};
        end
    case 'hungry'
        switch(input)
            case 'pet'
                result = {state, 'bites'};
            case 'feed'
                result = {'happy', 'purrs';...
                          'hungry', 'rubs'};
            case 'time passes'
                result = {'dead', 'dies'};
        end
    case 'dead'
        result = {state, 'dies'};
end
