Updated and refactored game logic in models as well as updated template and js.
Merge branch 'master' of https://github.com/epicowl/Tic-Tac-Toe