Vectorization of armor and weapons classes plus error checking in chooseWeapon/chooseArmor functions