question: private boolean checkLevelCompleted ( ) { for ( Block entity : boxes ) { Pair < Integer , Integer > point = new Pair < Integer , Integer > ( Integer . valueOf ( entity . getX ( ) ) , Integer . valueOf ( entity . getY ( ) ) ) ; if ( ! containerLocations . contains ( point ) ) { return false ; } } return true ; }
target:  checks whether the level was completed successfully.