puzzle validation and solved

Let me know if you think this looks right. It is a big commit.