Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
I think you're using hacks....arcanine does not learn magma storm. And there's no way surf only does a sliver of damage to alakazam. At least battle by your own rules.
If you were a good trainer you would know that no amount of special defense IV's and EV's would give alakazam enough special defense to handle that attack.
Next time, check what moves your pokemon can learn before you hack magma storm onto arcanine, you noob.