added support for spawning new game segment on user login
ran code cleanup