Implement the casting of spells