added tictac code