fixed version of chat.dart file to assign random usernames