Combination of three different puzzles and their solvers in Java