Moved js from puzzle.html to scripts.js to clean up the page and organize the code better.