added function for game reset