Javascript Puzzle Game Source Code