Update magic.cpp

definition of fireball funciton