added creategame logic