made pathfinder non-static, to work with multiple worlds
cleaned up spell system