day 10 - refactoring combat