Use deepcopy
Fix for generating solutions w/o flipping pieces
Write to file instead of print to console
Remove unnecassary `solve` function
Fix bugs
Uniquify solutions
Update `defs.py`