formatting
relocates some logic to the top, currently breaks pagination.
moves most of pagination logic to top, adds comments throughout the single game file to clarify what's happening in each block of code