/*
    Tests mark_cell
*/

public class TicTacToe2 {
    private static TicTacToeBoard2 board = new TicTacToeBoard2();

    public static void main (String[] args){
        System.out.println(board);
        board.mark_cell(1,1, 'X');
        System.out.println(board);
        try {
            board.mark_cell(3,1,'X');
        } catch (Exception e1) {
            System.out.println(e1.getMessage());
        }
        try {
            board.mark_cell(2,3,'X');
        } catch (Exception e2) {
            System.out.println(e2.getMessage());
        }
        try {
            board.mark_cell(2,2,'Z');
        } catch (Exception e2) {
            System.out.println(e2.getMessage());
        }
        try {
            board.mark_cell(1,1,'X');
        } catch (Exception e2) {
            System.out.println(e2.getMessage());
        }
    }
}
