public static void main(String args[]) {
		int size = 4;
		int[][][] cube = new int[size][size][size];
		TicTacToe tictactoe = new TicTacToe(cube);
		boolean gameOver = false;
		int PLAYER=1;
		List<Long> runTime = new LinkedList<Long>();
		while (!gameOver) {
			System.out
					.println("Instruction:Layer1(bot)->Layer4(top), 1 means player and 2 means computer");
			for (int i = 0; i < size; i++) {
				System.out.println("Layer" + (i+1) + ":");
				for (int j = 0; j < size; j++) {
					for (int q = 0; q < size; q++) {
						System.out.print(cube[i][j][q] + " ");
					}
					System.out.println();
				}
			}

			System.out.println("Please input the layer first:");
			Scanner scan = new Scanner(new BufferedInputStream(System.in));
			int layer = scan.nextInt();
			System.out.println("Please input the row:");
			int row = scan.nextInt();
			System.out.println("Please input the column:");
			int column = scan.nextInt();
			System.out.println("---------------------------------------------");
			tictactoe.placeXorO(layer-1, row-1, column-1, PLAYER, true);
			if(tictactoe.judgeWinOrLose()==1){
				System.out.println("Player wins!");
				break;
			}else{
				if(tictactoe.judgeWinOrLose()==-1){
					System.out.println("Computer wins!");
					break;
				}
			}
			long startTime = System.nanoTime();
			tictactoe.judgeNextStep();
			long endTime = System.nanoTime();
			runTime.add(endTime - startTime);
			if(tictactoe.judgeWinOrLose()==1){
				System.out.println("Player wins!");
				break;
			}else{
				if(tictactoe.judgeWinOrLose()==-1){
					System.out.println("Computer wins!");
					break;
				}
			}
		}
		for(int i=0;i<runTime.size();i++){
			System.out.println(runTime.get(i));
		}
	}