Fixed up basic functionality for enter result.

1. Fixed template so that it could display given root hierarchy.
2. Refactored view method to call elo calc function from outside of the function for a cleaner read.