Development of Real-Time Player Tracking System with Template Matching and Its Application to Badminton Game Analysis