Where is the class RandomException defined?
How is it related to the GameOverException1 class?

Try debugging your code by adding printlns to show the execution flow.
Then copy and paste here...