Refactor rename getPair() to encrypt(), and created getPair() method that does what the old getPair() used to (find the current mapping for the one encryption part in question).

Also removed the mess in main with another temporary output.