factorized game.erb