Added first mana cost checking

TODO: implement a useful algorithm