Added some helper functions to KeyManager.
Corrected the encryption used in the Deck class and added some helper functions there as well.
Completed test functions.