added .empty to points logic
Merge branch 'master' of https://github.com/belcortes/cupcake_game
moving stuff to js file