Tic Tac Toe in Angular JS