Updating parser functions

Add non-supply cards to getCardsGained, ignore non-supply cards for game
ending conditions, add getCardsBought and getCardsTrashed (not currently
used but they should work)
quick bugfix, forgot ;
Split parser functions into their own file

Parser functions removed to parser.php, that way they can be included in
other things for any purpose