Updating attack method in Character class.