finish implementation of spell cast comparator