I am creating a game where the player must collect the gems(which are the nodes). The first gem is disappearing because of the following condition.
if col