Trying to fix the amount you can have in your Inventory
Cleaned up code