ParentFull threadsateesh·Your example solution has only one player. Your solution won't work when there are multiple players.View on HN