Buggy code:
public class ScreenHandler { static FruitFever fruitFever ; static GLabel nodes = new GLabel ( "" ) ; static GLabel speed = new GLabel ( "" ) ; static GRect nodesBackground = new GRect ( 0 , 0 , 0 , 0 ) ; static GRect speedBackground = new GRect ( 0 , 0 , 0 , 0 ) ; static GLabel [ ] levelNumbers = new GLabel [ 20 ] ; static GImage [ ] levelLocks = new GImage [ 20 ] ; static GImage [ ] [ ] levelStars = new GImage [ 20 ] [ 3 ] ; static GImage [ ] [ ] levelNoStars = new GImage [ 20 ] [ 3 ] ; static String [ ] levelSelectionPages = new String [ ] { "0-19" , "20-39" , "40-59" , "60-79" , "80-99" } ; static GLabel levelRange = new GLabel ( ScreenHandler . levelSelectionPages [ 0 ] ) ; static GLabel numberOfFruitRings = new GLabel ( "" ) ; static GLabel numberOfLives = new GLabel ( "" ) ; static GImage [ ] livesImages = new GImage [ Player . MAX_LIVES ] ; static int HEART_AREA_WIDTH = 3 * ( Data . TILE_SIZE ) ; static GImage currentHealthBar ; static GImage currentEnergyBar ; static GImage musicX ; static GImage soundEffectsX ; static GLabel pauseMenuTitle = new GLabel ( "Paused" ) ; static GLabel musicLabel = new GLabel ( "Music" ) ; static GLabel soundEffectsLabel = new GLabel ( "Sound<seq2seq4repair_space>Effects" ) ; static GLabel mainMenuButtonText = new GLabel ( "Main<seq2seq4repair_space>Menu" ) ; static GLabel levelSelectionButtonText = new GLabel ( "Level<seq2seq4repair_space>Selection" ) ; static GLabel resumeButtonText = new GLabel ( "Resume" ) ; public ScreenHandler ( FruitFever fruitFever ) { } private void setLocations ( ) { } public void init ( ) { } public void drawMainMenu ( ) { } public void drawLevelSelection ( ) { } public void drawEndOfLevel ( ) { } public void drawPauseMenu ( ) { } public void removePauseMenu ( ) { } public void shiftLevelLabels ( int shift ) { } public void addBackground ( ) { } public void addImagesToScreen ( ) { for ( Thing obj : ScreenHandler . fruitFever . things ) if ( ( obj . layer ) == ( Layer . BELOW_BLOCKS ) ) add ( obj . image ) ; for ( Block obj : ScreenHandler . fruitFever . blocks ) add ( obj . image ) ; for ( Thing obj : ScreenHandler . fruitFever . things ) <START_BUG> if ( ( obj . layer ) == ( Layer . ABOVE_BLOCKS ) ) <END_BUG> add ( obj . image ) ; add ( ScreenHandler . fruitFever . player . image , ScreenHandler . fruitFever . player . swirl . image ) ; add ( iconBackgroundBar , Data . fruitRingAnimation [ 5 ] , ScreenHandler . numberOfFruitRings , ScreenHandler . numberOfLives ) ; add ( healthBarBackground , ScreenHandler . currentHealthBar , energyBarBackground , ScreenHandler . currentEnergyBar ) ; add ( ScreenHandler . livesImages ) ; ScreenHandler . addButtonsToScreen ( ScreenHandler . fruitFever . inGameButtons ) ; } public void updateFruitRingDisplay ( int newFruitRings ) { } public void updateDebugModeDisplay ( double milliSeconds ) { } public static void adjustHearts ( int livesLeft ) { } public static void adjustEnergyBar ( double percentage ) { } public static void resetEnergyBar ( ) { } public static void adjustHealthBar ( double percentage ) { } public static void resetHealthBar ( ) { } public static void redrawLivesLabel ( int current , int max ) { } public void animateAndRemoveText ( ArrayList < TextAnimator > arr ) { } public boolean animateText ( TextAnimator obj ) { } public void setHint ( TextAnimator obj ) { } public void toggleVisibility ( GObject obj ) { } private void centerObject ( GObject obj , int xOffset , int yPosition ) { } private void centerObject ( GObject obj , int yPosition ) { } private void centerObject ( GObject obj ) { } public static void addButtonsToScreen ( ArrayList < Button > arr ) { } public static void removeButtonsFromScreen ( ArrayList < Button > arr ) { } public void add ( GObject ... objects ) { } public void add ( GObject [ ] ... arrays ) { } public void add ( GObject [ ] [ ] ... setOfArrays ) { } public void remove ( GObject obj ) { } public void remove ( GObject ... objects ) { } public void removeAll ( ) { } No newline ; at end ; of file ; }

Fix:
if ( ( obj . layer ) != ( Layer . ABOVE_BLOCKS ) )