Non-positive curvature, cubes and subgroups of mapping class groups