Updated spells script to use the pages as spell level