@Override
	//버튼이벤트 내용
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		//주사위 굴리기 버튼
		if(e.getActionCommand() == "ROLL_DICE"){
			dice.setEnabled(false);
			nobtn.setEnabled(true);
			//Player 1
			if(next == 1){
				dice_num = rollDice();
				text.append("" + dice_num + "!\n");
				redrawToken(p1tokenLabel, p1);
				//text.append(p1.alertLocation());
				if(phm.block_name[p1.getPosition()].is_special){
					chancechance(next);
					okbtn.setEnabled(false);
				} else{
					okbtn.setEnabled(true);
					if(damageCheck(next, getPosition(next)) == 0){
						refreshStat();
						text.append(phm.block_name[p1.getPosition()].location_name + "을 구매하시겠습니까?(BUY) \n(" + (phm.block_name[p1.getPosition()].price[0]+p1.turns*20)+ "$)\n");
					} else{
						refreshStat();
					}					
				}
			//Player 2	
			} else{
				dice_num = rollDice();
				text.append("" + dice_num + "!\n");
				redrawToken(p2tokenLabel, p2);
				//text.append(p2.alertLocation());
				if(phm.block_name[p2.getPosition()].is_special){
					chancechance(next);
					okbtn.setEnabled(false);
				} else{
					okbtn.setEnabled(true);
					if(damageCheck(next, getPosition(next)) == 0){
						refreshStat();
						text.append(phm.block_name[p2.getPosition()].location_name + "을 구매하시겠습니까?(BUY)\n(" + (phm.block_name[p2.getPosition()].price[0]+p2.turns*20) +"$)\n");
					} else{
						refreshStat();
					}
				}
			}
		//BUY버튼	
		} else if(e.getActionCommand() == "BUY"){
			Buy(next, getPosition(next));
			okbtn.setEnabled(false);
			refreshStat();
		// NEXT TURN 버튼	
		} else{
			resetMessage();
			if(next == 1){
				next = 2;
				text.append(p2.Name + " 의 차례입니다! \n");
			} else{
				next = 1;
				text.append(p1.Name + " 의 차례입니다!");
			}
			dice.setEnabled(true);
			okbtn.setEnabled(false);
			nobtn.setEnabled(false);
			text.append("주사위를 던지세요! \n");
		}//END of if..else
		
	}//END of ActionEventListener