Bomb Detection, Booster Detection Else Nothing

The First Line of code detects the Bomb in the path. The second line
detects the Booster. The third says nothing. i.e return 0-->Bomb,
return 1--->Booster, return 2---> Do nothing