added method to fill frame with pins