Help with table game

Hello, I fought that for this game we only needed 3x3 cards of the same colour like in the picture. Can you tell me why I did not win ? Or is the game supposed to end by itself and we have to do the maximum of combination?

(Sorry for my English, it is not my native language)

Hello, I fought that for this game we only needed 3x3 cards of the same colour like in the picture. Can you tell me why I did not win ? Or is the game supposed to end by itself and we have to do the maximum of combination?

(Sorry for my English, it is not my native language)