@Override
		public void mouseDragged(MouseEvent e) {
			if (leverIsSelected) {
				changeFlag = true;
				
				// Update frame when necessary
				Point userPoint = new Point(e.getX(), e.getY());

				for (int i=0; i<19; i++) {
					if (checkLeverSelected(leverPoints[i], userPoint)) {
						// Change the switch's lever icon
						moveLever(switchNum, i, false);
						
						// Use onFlag for setting switch to either on or off
						if (i<10) onFlag = false;
						else onFlag = true;
						
						return; // Found appropriate icon, no need to continue.
					}
				}		
			}
		}