Implemented scheduleAllMatches function