Refactored the code, now functorised by hard and routine tactics, adn uses Isabelle contexts properly during the exploration loop