Created MainFrame class as a home of the program
Modified Search.exists method