Update chess.py

Added logging