Ward caps career with two state titles