cleaned up the way the chess vars and config objects are sent to the client