moved game creation to a factory