Added exceptions to handle runtime errors in GameMenu class