Moved the main player loop into its own function
Start of inventory system