Round generation refactor.
Finished the refactor of the backend.