fixed bug in toggle; cleaned up game.js; added debouncer