The controller not renders json as the next move generated from gnuchess, you must have params with moves_history in the url