Implementation of the card game Set using HTML5 canvas and coffeescript