Buggy code:
public class Listener extends JPanel implements ActionListener , KeyListener { private final Action directionKeys = new Action ( ) ; private final Actions [ ] acValues = Actions . values ( ) ; private final Client client ; private final RenderPane graphics ; private final SplashScreen splash ; private boolean splashLocked = true ; public Listener ( Client client , RenderPane graphics , UserInterface ui ) { } public SplashScreen getSplash ( ) { } public void setSplashLocked ( boolean locked ) { } @ Override public void keyPressed ( KeyEvent e ) { } public void actionPerformed ( String ac ) { if ( ac . equals ( "Exit" ) ) { splash . setSavedCard ( ) ; splash . setVisibleConfirm ( "Quit" , KeyEvent . VK_Q , "Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>quit?<seq2seq4repair_space>Current<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>lost." ) ; return ; } if ( ! ( splashLocked ) ) { int openCard = splash . getOpenCard ( ) ; <START_BUG> if ( ( ( openCard == ( SplashScreen . HOST_CARD ) ) || ( openCard == ( SplashScreen . CONFIRM_CARD ) ) ) || ( openCard == ( SplashScreen . DEATH_CARD ) ) ) { <END_BUG> if ( ac . equals ( "New<seq2seq4repair_space>Game" ) ) { splash . setVisibleStartup ( "Creating<seq2seq4repair_space>a<seq2seq4repair_space>new<seq2seq4repair_space>game.<seq2seq4repair_space>Waiting<seq2seq4repair_space>for<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>..." ) ; client . handleAction ( NEWGAME . ordinal ( ) ) ; } else if ( ac . equals ( "Load<seq2seq4repair_space>Game" ) ) { splash . setVisibleStartup ( "Loading<seq2seq4repair_space>a<seq2seq4repair_space>game.<seq2seq4repair_space>Waiting<seq2seq4repair_space>for<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>..." ) ; client . handleAction ( LOAD . ordinal ( ) ) ; } } if ( openCard == ( SplashScreen . CONFIRM_CARD ) ) { if ( ac . equals ( "Cancel" ) ) { splash . loadSavedCard ( ) ; } else if ( ac . equals ( "Restart" ) ) { splash . setVisibleStartup ( "Restarting<seq2seq4repair_space>the<seq2seq4repair_space>level.<seq2seq4repair_space>Waiting<seq2seq4repair_space>for<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>..." ) ; client . handleAction ( NEWGAME . ordinal ( ) ) ; } else if ( ac . equals ( "Quit" ) ) { System . exit ( 0 ) ; } } if ( openCard == ( SplashScreen . WIN_CARD ) ) { if ( ac . equals ( "Egg" ) ) { splash . updateWinCard ( "'Egg'<seq2seq4repair_space>is<seq2seq4repair_space>the<seq2seq4repair_space>wrong<seq2seq4repair_space>answer!<seq2seq4repair_space>You've<seq2seq4repair_space>got<seq2seq4repair_space>one<seq2seq4repair_space>guess<seq2seq4repair_space>left<seq2seq4repair_space>...<seq2seq4repair_space>" ) ; } else if ( ac . equals ( "Chicken" ) ) { splash . updateWinCard ( "'Chicken'<seq2seq4repair_space>is<seq2seq4repair_space>the<seq2seq4repair_space>wrong<seq2seq4repair_space>answer!<seq2seq4repair_space>You've<seq2seq4repair_space>got<seq2seq4repair_space>one<seq2seq4repair_space>guess<seq2seq4repair_space>left<seq2seq4repair_space>...<seq2seq4repair_space>" ) ; } else if ( ac . equals ( "Dinosaur" ) ) { splash . updateWinCard ( "CHEATER!<seq2seq4repair_space>Try<seq2seq4repair_space>again,<seq2seq4repair_space>but<seq2seq4repair_space>follow<seq2seq4repair_space>the<seq2seq4repair_space>rules<seq2seq4repair_space>this<seq2seq4repair_space>time!" ) ; } } return ; } if ( ac . equals ( "New<seq2seq4repair_space>Game" ) ) { splash . setVisibleConfirm ( "New<seq2seq4repair_space>Game" , KeyEvent . VK_N , "Start<seq2seq4repair_space>a<seq2seq4repair_space>new<seq2seq4repair_space>game?<seq2seq4repair_space>Current<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>lost." ) ; } else if ( ac . equals ( "Save" ) ) { client . handleAction ( SAVE . ordinal ( ) ) ; } else if ( ac . equals ( "Load" ) ) { splash . setVisibleConfirm ( "Load<seq2seq4repair_space>Game" , KeyEvent . VK_L , "Load<seq2seq4repair_space>the<seq2seq4repair_space>saved<seq2seq4repair_space>game?<seq2seq4repair_space>Current<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>lost." ) ; } else if ( ac . equals ( "Restart<seq2seq4repair_space>Level" ) ) { splash . setVisibleConfirm ( "Restart" , KeyEvent . VK_R , "Restart<seq2seq4repair_space>this<seq2seq4repair_space>level?<seq2seq4repair_space>Current<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>lost." ) ; } else if ( ac . equals ( "Controls" ) ) { splash . setVisibleCard ( READY_CARD ) ; } else if ( ac . equals ( "About" ) ) { splash . setVisibleCard ( ABOUT_CARD ) ; } } @ Override public void actionPerformed ( ActionEvent e ) { } @ Override public void keyReleased ( KeyEvent e ) { } @ Override public void keyTyped ( KeyEvent e ) { } private static final long serialVersionUID = 1L ; }

Fix:
if ( ( openCard == ( SplashScreen . HOST_CARD ) ) || ( openCard == ( SplashScreen . CONFIRM_CARD ) ) ) {