The tutorial teaches you the ropes (pun!) but you just want to have more bugs than your opponent to win a rope, and more total gems than your opponent to win the match
The game shows you the number of bugs you have versus your opponent, and you have the same number! If you really put every bug you can on a chest, you cannot lose that chest. But... you might not win the round!