Block puzzle via html5 canvas