Added a method into the Warrior class