Update chess.py

Ran pylint to identify issues, added __doc__ strings etc.