chess 4.0 with fixed I/O from browser