added a concept of spell cost