my major problem is detecting efficiently with failsafe the different 'ok' at the end of game and clicking them. here so images so u can make 'links' while reading the script. it shouldn't be too difficult because as far as I know the different 'ok' always appears at the same places.
Map

receive card

dialogue ( have to press ok a few times but the button always at same spot)

defeat

victory

what I tried at first to detect them is using 'countingcolortolerance' in 'boxed' on the screen to detect them but it doesn't alwat work.