implemented letter swapping, scoring, and unique word checks