Added checking for stability on Change cards

Now the application try to click change cards button as many times
needed checking if the deposit button for payment is present.