Update player

added support for buying and selling, found problem with inv when running program.