createGame functionality