adding game reset function