Cleaned up code and added player buy/sell function.