added 'loggedIn' data field to the state record, as the player needs this value to know if they're logged into a tournament or not. Also added the ability to logout through the 'logout(TournamentPid)' helper function