added new methods to attack and character