You want to make sure that your cookie dough is completely sealed around the marshmallow piece. You can achieve this by rolling it in your hand and watching out for any white marshmallow peeking out. If you see some marshmallow after they have baked, it's okay. They will still taste yummy.