working version with games, tiebreaks,sets and matches. Needs to be refactored