add configurable game, improve game loop, etc