add exception handling to enemy and menu classes