Combine updateCurrentFrame() and goToFrame() functions