 			U.buttonManager.destroy();
 		}
 		
-		protected const MODE_MODULE:int = 0;
-		protected const MODE_CONNECT:int = 1;
-		protected const MODE_REMOVE:int = 2;
-		protected const MODE_DELAY:int = 3;
-		
 		public const VIEW_MODE_NORMAL:int = 0;
 		public const VIEW_MODE_DELAY:int = 1;
 		
 		protected const LIST_NONE:int = 0;
-		protected const LIST_MODES:int = 1;
 		protected const LIST_CATEGORIES:int = 2;
 		protected const LIST_MODULES:int = 3;
 		protected const LIST_ZOOM:int = 4;

			if (time.moment)
				return; //no fucking around when shit is running!
			
			switch (mode) {
				case MODE_CONNECT:
					checkConnectControls();
					break;
				case MODE_MODULE:
					checkModuleControls();
					break;
				case MODE_REMOVE:
					checkRemoveControls();
					break;
			}
			
			if (ControlSet.DELETE_KEY.pressed() && !currentWire && !currentModule) {
				destroyModules();
				destroyWires();
			}
		}
		
		protected function checkConnectControls():void {
			if (currentWire) {
				if (FlxG.mouse.pressed())
					currentWire.attemptPathTo(U.pointToGrid(U.mouseLoc), true)
				else {
					new CustomAction(Wire.place, Wire.remove, currentWire).execute();
					currentWire = null;
				}
			} else if (FlxG.mouse.justPressed() && !U.buttonManager.moused) {
				currentWire = new Wire(U.pointToGrid(U.mouseLoc))
				displayWires.push(midLayer.add(new DWire(currentWire)));
			}
			
			
			if (currentWire && ControlSet.CANCEL_KEY.justPressed()) {
				currentWire.exists = false;
				currentWire = null;
			}
		}
		
		protected function checkModuleControls():void {
			if (currentModule) {
				var mousePoint:Point = U.pointToGrid(U.mouseLoc);
				currentModule.x = mousePoint.x;
				currentModule.y = mousePoint.y;
				
				if (FlxG.mouse.justPressed() && !preserveModule) {
					if (U.buttonManager.moused) {
						currentModule.exists = false;
						currentModule = null;
					} else if (currentModule.validPosition)
						placeModule();
				}
			} else {
				if (FlxG.mouse.justPressed() && !U.buttonManager.moused) {
					if (ControlSet.MODIFIER_KEY.pressed())
						addEditSliderbar();
					else
						pickUpModule();
				}
			}
		}
		

			}
		}
		
		protected function checkModuleListState():void {
			var moduleSlider:ModuleSlider;
			if (moduleList && !moduleList.exists) {
				moduleList = null;
