tip, try having one variable (c for choice?), then set it based on what you want (cake/beer/hamburger, or 1/2/3) and check that, instead of checking different varaibles
to go with that, you don't need to reset the variable after, which is giving you problems
make the delays longer, as the variables are reseting before being checked, as there is a 33 delay after each event (calling the onvariabletrue/false)