implimented new method in chooseArmor function to search file that preserves variable typing. test function can be ignored.