3D puzzle solving code written in Racket