Started working towards assigning a cost to spells

Started adding some of the code required to assign a cost to a spell
based on its attributes. Not finished, however.