The word "pondered" would be the most appropriate replacement for "worried" in sentence 16. It conveys the idea of thinking about how to plan better for the future without the negative connotation that "worried" carries.
So, the revised sentence would be: "Sam pondered how he would need to plan better next time, so he wouldn’t forget next time."