init before game