complteted tictactoe assignment from week1