added spell functionality, as well as the freeze spell. additional spells can be easily added by adding to the spells global object