puzzle.py: added matrix decorator, removed graphics