Introduced scoring method for better sorting of matches
Try to reduce "blinking" when showing the window