added my solution for tictactoe