Added some unit tests for player functionality, updated login semantics.
Implemented unit tests for login command.
Added unit tests for more player functionality, and used if let syntax more.