added hasWon clas an edited TicTacToe class