function t() is just a dummy for init() means it makes all buttons enabled - so you can click on it
function f() is to make a single button disable, the way he do it is to enabled all button first (called function t()) then disable the one you just press (oops, release I mean).