Simple but configurable slide puzzle in Python