added biased probability for polya up through hexomino and changed global var ww, wh to canvasWidth, canvasHeight