* refactoring play function. Tests for keys to action mapping.
* Add mocking pygame events.
* partial event processing in class.
* pre-commit.
* quit pygame after tests.
* fix typos in functions names.
* Add type hint.
* Add test for play function.
* remove mockKeyEvent.
* remove unused main code.
* Adding type hints.
* catch custom exception in tests.
* Fix magic numbers.
* Add test with an actual environment.
* fix comment.
* Add TODO memo on env.render.
* change map with list comprehension.
* remove unused imports.
* Add type hint.
* typo.
* docstring.