Trivial: remove two lines of commented debug code
Simplify implementation of ChessEngine.write()