Added swing animation

also deleted nonfunctional code from mainController