%FEEDCAT - cat state machine cascaded with the feeder

%initialize
feederState = 'happy';
catState = 'happy';

for i=1:10,
[feederState,input] = feeder(feederState, '1');

result = chooserow(possibleChooseUpdate(catState, input));
catState = result{1};

disp(result{2})
end