refactoring: created animateFretboardBody function, made  an instance variable