Code for a variety of fun puzzle problems.