Added functionality in TicTacToe.java so that it let's JavaScript know if WIN/TIE occurs.