public void buttonClick(int position){
		
		if(turn <10){
		btnEmptyClicked = true;
		if(isMyTurn)
		{
			btnEmpty[position].setText("X");
			btnEmpty[position].setFont(new Font("sansserif",Font.BOLD,32));
			isMyTurn = false;
		}
		else
		{
			btnEmpty[position].setFont(new Font("sansserif",Font.BOLD,32));
			btnEmpty[position].setText("O");
			isMyTurn = true;
		}
		btnEmpty[position].setEnabled(false);
		pnlPlayingField.requestFocus();
		turn++;
		}
		if(btnEmptyClicked) {
			checkWin();
			btnEmptyClicked = false;
		}
	}