Building castles out of matchsticks