Browser-based Dot matching game implemented in RaphaelJS