I've been battling with a particular assignment for my 3rd year computer science paper for over three weeks now. After many hours of struggling I still feel far from a solution. The assignment is to write code that will solve a puzzle. The puzzle consists of 12 pentagons with each side of the pentagon having a colored animals head or bottom facing right or left. Such that a red left facing head would match with a red right facing bottom. When every side is matched they make a dodecahedron. We have been given 3 puzzles which correspond to the 3 text files. I have written this code but it only seems to solve the problem when I make an input file with 7pieces or less. I have included the latest version of code I have written as well as the input files. I realize that my code is extremely sloppy, convoluted and hard to understand (especially the solve method) but I would appreciate any help. If someone were to solve it for me I would be happy to pay 50NZD. Please help me as I am at my wits end. If you need more documentation or information in regards to the question don't hesitate to ask. Thanks.