DDO Vale Puzzle Practice Program
(taken from DDO Vale Puzzle solver and modified)