purchasing items

Purchasing items works properly now, the game is essentially complete,
just need to do some clean up e.g. get rid of unneeded code as well as
fix a few bugs.