Changed up match_any() so it works better and tidied up Main.py