A collection of useful puzzle solving functions