Why enterScore function run without click?