dereferenced pointer

SearchInventory function works
main

deleted some crap
Revert "dereferenced pointer"

This reverts commit 728caf232310c0d153fa3ff3bcbcde9c6219dbd1.
Revert "main"

This reverts commit 1818d770fee3df5f04efb5baefaf6d81b32c75d1.