Splitting the javascript to its own file.
Revealing the board on win/loss.
Adding documentation for the methods.
Removed unused method.