init game core logic