changed animate to be individual frames. Wrapper function still needs to be added, animate(int pos) is empty atm.