simple tictactoe game in angularJS