Added the framework for casting spells