Working conditionals and added number of tries counter