perhaps its the (!player) and since the player is never true, then it waits and and waits and waits, so the function does not run!

Is player = valid ? is it assigned to anything?

:S its the only variable im ...wondering