How were you losing the points? How were you winning the points? What was his advantage over you? What was your advantage over him? The only thing you can really deduce from your post is that he seems to have more accurate shots, but nothing about depth, spin, pace, consistency, forehand vs backhand, foot speed, etc., so hard to come up with a plan.
With that said, your default plan is gonna be hitting a lot of deep shots to your opponent's backhand, but keeping him running and guessing by regularly mixing in balls to the other side (deep shots, heavy angles or even dropshots). At 4.5 and below, consistency wins almost all matches, of course, but everyone knows that - the underrated element is depth, from an offensive, but especially defensive point of view - it will neuter both ball bashers and junk ballers.