Moved server logic from app to GameServer