public void tick() {
		if(playing) {
			if(turn.equals(WHITE)) {
				whiteClock.secondPasses();
			} else {
				blackClock.secondPasses();
			}
			clockStatus.setText("White time left: " + whiteClock.dispClock() + " " + "Black time left: " + blackClock.dispClock());
			if(whiteClock.isZero()) {
				status.setText(makeLength(12,"Black wins!"));
				playing = false;
			} else if(blackClock.isZero()) {
				status.setText(makeLength(12,"White wins!"));
				playing = false;
			} else {
				//piecesStatus.setText("Number WHITE captured: " + numWhiteCapt() + " Number BLACK captured: " + numBlackCapt());
			}
			notate();
			repaint();
		}
		if(resigned) {
			Color temp;
			if(turn.equals(WHITE)) {
				temp = BLACK;
			} else {
				temp = WHITE;
			}
			String str = colorToString(temp);
			status.setText(makeLength(12, str + " wins!"));
		}
	}