Made generic functions to process menu selections as opposed to the previous method of hardcoding reactions to each selection. (Removed said hard code)