Added function printWinner in TicTacToe.java
Added function gridToString in TicTacToe.java
Fix exception problems