Buggy code:
public class SplashScreen extends JPanel { public static final int NO_CARD = 0 ; public static final int STARTUP_CARD = 1 ; public static final int HOST_CARD = 2 ; public static final int READY_CARD = 3 ; public static final int DEATH_CARD = 4 ; public static final int WIN_CARD = 5 ; public static final int ABOUT_CARD = 6 ; public static final int CONFIRM_CARD = 7 ; public static final int INFORM_CARD = 8 ; public static final int GENERIC_CARD = 9 ; private final JPanel [ ] allPanels = new JPanel [ 10 ] ; private final int LOAD_GAME = 1 ; private final JButton [ ] menuButtons = new JButton [ ] { new JButton ( "New<seq2seq4repair_space>Game" ) , new JButton ( "Load<seq2seq4repair_space>Game" ) } ; private final int [ ] menuMnemonics = new int [ ] { KeyEvent . VK_N , KeyEvent . VK_L } ; private final JButton confirmButton = new JButton ( ) ; private final JButton [ ] winButtons = new JButton [ ] { new JButton ( "Chicken" ) , new JButton ( "Egg" ) , new JButton ( "" ) } ; private final int [ ] winMnemonics = new int [ ] { KeyEvent . VK_C , KeyEvent . VK_E , KeyEvent . VK_D } ; private final JLabel startupMessage = new JLabel ( "Waiting<seq2seq4repair_space>for<seq2seq4repair_space>connection<seq2seq4repair_space>..." ) ; private final JLabel confirmMessage = new JLabel ( "" ) ; private final JLabel informMessage = new JLabel ( "" ) ; private final JLabel winMessage = new JLabel ( "Congratulations,<seq2seq4repair_space>you've<seq2seq4repair_space>almost<seq2seq4repair_space>beaten<seq2seq4repair_space>the<seq2seq4repair_space>game!<seq2seq4repair_space>Just<seq2seq4repair_space>one<seq2seq4repair_space>last<seq2seq4repair_space>question<seq2seq4repair_space>...<seq2seq4repair_space>" ) ; private final JLabel genericMessage = new JLabel ( "" ) ; private final CardLayout layout = new CardLayout ( ) ; private UserInterface ui ; private int savedCard = - 1 ; private int openCard = SplashScreen . STARTUP_CARD ; public SplashScreen ( UserInterface ui , Listener listener ) { } public void setVisibleCard ( int newPane ) { } public void setVisibleMenu ( boolean loadGame ) { } public void setVisibleConfirm ( String action , int keyevent , String message ) { } public void setVisibleInform ( String message ) { } public void setVisibleGeneric ( String message ) { } public void setVisibleStartup ( String message ) { } public void updateWinCard ( String message ) { } public int getOpenCard ( ) { } public void setSavedCard ( ) { } public void loadSavedCard ( ) { } public String performKeyPress ( int event ) { if ( ( openCard ) == ( SplashScreen . HOST_CARD ) ) { if ( ( ! ( menuButtons [ LOAD_GAME ] . isEnabled ( ) ) ) && ( event == ( KeyEvent . VK_L ) ) ) { return "" ; } for ( int i = 0 ; i < ( menuMnemonics . length ) ; i ++ ) { if ( ( menuMnemonics [ i ] ) == event ) { return menuButtons [ i ] . getActionCommand ( ) ; } } } else if ( ( openCard ) == ( SplashScreen . CONFIRM_CARD ) ) { if ( event == ( KeyEvent . VK_C ) ) { setVisibleCard ( SplashScreen . NO_CARD ) ; } else if ( event == ( confirmButton . getMnemonic ( ) ) ) { return confirmButton . getActionCommand ( ) ; } } else <START_BUG> if ( ( ( openCard ) == ( SplashScreen . READY_CARD ) ) || ( ( openCard ) == ( SplashScreen . ABOUT_CARD ) ) ) { <END_BUG> if ( ui . getPlaying ( ) ) { setVisibleCard ( SplashScreen . NO_CARD ) ; } else { setVisibleStartup ( "Cannot<seq2seq4repair_space>return<seq2seq4repair_space>to<seq2seq4repair_space>game.<seq2seq4repair_space>Waiting<seq2seq4repair_space>for<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>..." ) ; } } else if ( ( openCard ) == ( SplashScreen . DEATH_CARD ) ) { return "New<seq2seq4repair_space>Game" ; } else if ( ( openCard ) == ( SplashScreen . INFORM_CARD ) ) { if ( ui . getPlaying ( ) ) { loadSavedCard ( ) ; } else { setVisibleStartup ( "Waiting<seq2seq4repair_space>for<seq2seq4repair_space>game<seq2seq4repair_space>state<seq2seq4repair_space>..." ) ; } } else if ( ( openCard ) == ( SplashScreen . WIN_CARD ) ) { for ( int i = 0 ; i < ( winMnemonics . length ) ; i ++ ) { if ( ( winMnemonics [ i ] ) == event ) { return winButtons [ i ] . getActionCommand ( ) ; } } } return "" ; } private void createStartUpCard ( ) { } private void createMenuCard ( Listener listener ) { } private void createReadyCard ( ) { } private void createDeathCard ( ) { } private void createWinCard ( Listener listener ) { } private void createAboutCard ( ) { } private void aboutHelper ( String msg ) { } private void createConfirmCard ( Listener listener ) { } private void createInformCard ( ) { } private void createGenericCard ( ) { } private void makeButton ( Listener listener , JButton btn , Dimension size , int mnemonic ) { } private void addImage ( int card , String imageAddr ) { } private static final long serialVersionUID = 1L ; }

Fix:
if ( ( ( ( openCard ) == ( SplashScreen . READY_CARD ) ) || ( ( openCard ) == ( SplashScreen . ABOUT_CARD ) ) ) || ( ( openCard ) == ( SplashScreen . DEATH_CARD ) ) ) {