I found a glitch, So i was battling the first gym leader, i got to his happiny. Unfortunately my pokemon hurt it self in confusion so when Happiny used copy cat it just said that it used copy cat over and over again, never hit me, couldn't leave the battle and i was stuck