Optimization. Added cache for XY lookups.
Merge branch 'master' of https://github.com/dalrimple/15puzzle