for( int n =0; n < quantity; n++ ) {
handlers[ n ] =new SpritesOverlapping[ quantity ];
for( int m = 0; m < quantity; m++ ) handlers[ n ][ m ] = defaultHandler;
}
for( Map.Entry<ShapeType, HashMap<ShapeType, SpritesOverlapping>> entry1 : spritesOverlappingMap.entrySet() ) {
ShapeType shapeType1 = entry1.getKey();
for( Map.Entry<ShapeType, SpritesOverlapping> entry2 : entry1.getValue().entrySet() ) {
handlers[ shapeType1.getNum() ][ entry2.getKey().getNum() ] = entry2.getValue();
}
}
}