added click variable to control game reset