Cutting out foam core pieces