Generic Pentominoes Puzzle Solver