modularizing game setup