my solution to War challange