When do you change ends on a tennis court?

when the number of games are odd