anchor.diff:  					.attr("data-index", index);
                   $("#gameButtonGroup").append(button);
               });
  -        }
  -        
  -        function changeButton(button, color, text) {
  +        };
  +        
  +        var changeButton = function changeButton(button, color, text) {
               button.style.backgroundColor = color;
               button.innerHTML = text;
  -        }
  -        
  -        function animateImage() {
  +        };
  +        
  +        var animateImage = function animateImage() {
           	var luckMessageMargin = $("#luck-message").css("margin-top");
           	
               $("#win-pic").animate({
  
positive.code:             		});
              	});
              });
          }
          
          function winEvent(numRows){
          	var separateAfterGame = '<br style="clear:both" class="after-game"><br class="after-game">';
  			var winContainer = '<p id="win-message"></p>';
  			var winMessage = "You found the treasure! :D";
  
negative.code: 	      	   alert("Unable to contact server");
  	        });
  		});
  		
  		$(document).on('click', '#win-pic', animateImage);
  	}());
  	</script>
  </body>