Merge pull request #143 from hfaran/refresh_balls

fixed bug in toggle; cleaned up game.js; added debouncer
proper triangle layout and dynamic resizing