Progress on the spell functionality

Still not working however