refactored game and renderer, using config object for game, made things easier testable