calculates purchase total, determines if player can afford purchase, implemented full purchase workflow