Restructure {{sudoku.js}} to contain only logic code.