adding memoization with closure
play.py to PEP8
adding docstrings