For example when the max number of games have been played the play new game button is still enabled and if pressed a message will be shown.
It can happen, that the new game button matches with a higher percentage than the max number of games played text. The bot will get stuck and does not stop.
Add a priority list and if more than 1 image matches with over for example 90% then check the priority list.