public MainPage(final PageParameters params){


		MySession sess = (MySession)getSession();

		int playertype1 = params.getInt(PARAM_PLAYER_TYPE1);
		int playertype2 = params.getInt(PARAM_PLAYER_TYPE2);

		for(int i=1;i<65; i++){
			CELL_ARRAY[i] = new StoneLink(i){
				private static final long serialVersionUID = 7308614583288211827L;
				public void onClick() {putStone(this);}
			};
			addForm(CELL_ARRAY[i]);
		}


		for(int i=1; i<65; i++){
			RateNumber rate = new RateNumber(i);
			RATE_ARRAY.put(Integer.toString(i), rate);
			addForm(rate);
		}

		addForm(_comturn);
		addForm(_humanpass);

		PlayerInfo player1 = new PlayerInfo(playertype1, StoneType.BLACK);
		PlayerInfo player2 = new PlayerInfo(playertype2, StoneType.WHITE);
		sess.resetBoard(player1, player2, CELL_ARRAY);
		sess.getBoard().setGameStatus(GameStatus.GAMING);
		sess.getBoard().setFirstPlayerInfo(player1);
		sess.setPlayer1(player1);
		sess.setPlayer2(player2);
		sess.setTurn(player1);

		// プレイヤーの情報
		addForm(_isturn1);
		addForm(_stone1);
		addForm(_humanorcom1);
		addForm(_playercount1);
		ResourceReference stoneref1 = StoneLink.IMG_BLACK;
		if(player1.getStoneType() != StoneType.BLACK){
			stoneref1 = StoneLink.IMG_WHITE;
		}
		_stone1.setModelObject(stoneref1);

		addForm(_isturn2);
		addForm(_stone2);
		addForm(_humanorcom2);
		addForm(_playercount2);
		ResourceReference stoneref2 = StoneLink.IMG_BLACK;
		if(player2.getStoneType() != StoneType.BLACK){
			stoneref2 = StoneLink.IMG_WHITE;
		}
		_stone2.setModelObject(stoneref2);

		showGameInfo();

		_isSimulation = false;
		String playtimes = params.getString("PLAY_TIMES");
		if(playtimes != null && !playtimes.equals("")){
			_isSimulation = true;
			int playtimes_ = Integer.parseInt(playtimes);
			for(int i=0;i<playtimes_; i++){

				System.out.println("count -- " + (i+1));

				for(int j=0;j<64;j++){
					comTurn();
					Board bd = sess.getBoard();
					if(bd.getGameStatus() > GameStatus.GAMING){
						break;
					}
				}


				sess.resetBoard(player1, player2, CELL_ARRAY);
				sess.getBoard().setGameStatus(GameStatus.GAMING);
				sess.getBoard().setFirstPlayerInfo(player1);
				sess.setPlayer1(player1);
				sess.setPlayer2(player2);
				sess.setTurn(player1);


			}
		}

	}