Split game handler and renderer; refactoring.