Major rewrite, classes for card and search, and fixed the readline issue that would crash on SIGINT.
Fixed merge issue