private static void turnLED(int row, int col, int what) {
    	// Store object's status value
    	ledArray[row][col].setStatus(what);
		
    	// Display the new state
    	if (what == 0) {
    		// LED off
    		ledArray[row][col].getLabel().setBackground(new Color(157, 162, 149));
    	}
    	else if (what == 1) {
			// LED on
			ledArray[row][col].getLabel().setBackground(Color.RED);
		}
		// If LED is flashing, store it in flashingLED array list.
		else if (what == 2) {
			flashingLEDs.add(ledArray[row][col].getLabel());
			return;
		}
    	
    	// If we get here, LED is no longer flashing. Find and remove it from list.
    	for (int i=0; i<flashingLEDs.size(); i++) {
    		if (flashingLEDs.get(i) == ledArray[row][col].getLabel()) {
    			flashingLEDs.remove(i);
    		}
    	}
    }