Split spell manager from spells, fixed #1