public void update(double elapsedTime) {
    	Dimension bounds = myView.getGameSize();
        int keyEvent = myView.getLastKeyPressed();
			processKeyEvent(keyEvent);
        Point mouseEvent = myView.getLastMousePosition();
        processMouseEvent(mouseEvent);
        for (Spring s : mySprings) {
            s.update(elapsedTime, bounds);
        }
        for (ArrayList<Mass> masses: myAssembly) {
        	for (Mass m : masses) {
                m.update(elapsedTime, bounds);
            }
        	for (Force v: myForces) {
            	v.update(elapsedTime, bounds, masses);
            }
        }
        if (myMouseSpring != null) {
        	myMouseSpring.update(elapsedTime, bounds);
        }
    }