public static void cardclick(int button) {
		// in case of button gets clicked again
		if ((newhand[button] != handcopy[button]) && newhand[button] >= 1) {
			newhand[button]--;
		}
		// in case new button gets clicked
		else if ((newhand[button] == handcopy[button]) && newhand[button] >= 1) {
			System.arraycopy(handcopy,0,newhand,0,13);
			newhand[button]--;
		}
		// in case of button gets clicked with 0 cards
		else if((newhand[button] == handcopy[button]) && newhand[button] == 0){
			System.arraycopy(handcopy,0,newhand,0,13);
		}
		// change display array
		display[0] = button;
		display[1] = handcopy[button] - newhand[button];
	}