SlidingPuzzle as a library