//shuffle scripts
function shuffle(array) {
     var clone = array; //copy array to clone
     for ( var i = 0; i < clone.length; i ++) {
          var j = i;
          while (j == i) {
               j = Math.floor(Math.random()*clone.length);
          }
          var contents =  clone[i];
          clone[i] = clone[j];
          clone[j] = contents;
          }
     return clone;
}
function deal(array, hand, count) {
     var clone = array; //copy array to clone
     for ( var i = 0; i < count; i ++) {
          var j = Math.floor(Math.random()*clone.length);
          hand.push(clone[j]); //copy card to hand
          clone.splice(j , 1);
     }
     deck = clone;
     return hand;
}
function shuffleInit() {
	deck = ["101","111","121","131","141","151","102","112","122","132","142","152","103","113","123","133","143","153","104","114","124","134","144","154"];
	deck = shuffle(deck);
	hand1 = deal(deck, hand1, 5);
	hand2 = deal(deck, hand2, 5);
	hand3 = deal(deck, hand3, 5);
	hand4 = deal(deck, hand4, 5);
	kitty = deal(deck, kitty, 4);
}