fix crap and add money stuff

- deleted a lot of dead code that was causing memory leaks
- added in money restore for disconnected players (untested)