* Made a few changes to fit a python profiler. Still needs a proper way to turn on/off
* Fixed issue where database was not resetted when the jigsaw board changed size.