Merge pull request #3 from Quinten/gh-pages

merge state machine changes
Create grid.js
Update grid.js
Update index.html
Merge pull request #4 from Quinten/master

merge changes in master