Fixed extremely dumb update() bug where if-thens were not properly nested. EXTREME DERP.