Fixed an error in the update() method where spriteFrame was being incremented instead of spriteCounter.