Old echochess code, for demonstration purposes only