implemented function for instantiating new games