Tic Tac Toe in Angular.js