The purpose of the menuHandler is to define the actions to be performed with each menu item chosen by a user. For discussion purposes, we break the menu items into two groups, changing the display screen/window and setting the animation speed.