added sliding windows function
 combined score works