It acts like a score actually. But I deliberately let player able to go to the next level without collecting those. I want this puzzle to be more about the effort rather than "how to solve this puzzle". Anyway, I'm glad you enjoyed the game. Thanks for playing :)