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;
}

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 ; }
checks whether the level was completed successfully .
