DDO Vale Puzzle Solver
(taken directly from Lights out puzzle solver and modified)