fix Starter kit example number 12

Without the reset of numberOfKnocks value, the box can not be closed more than once.