Added api for TicTacToe.java