Finished the clickCountry function

also I made some small adjustments to other things, and changed main
significantly so it closely resembles how it ought to end up.