Nice one! Your code saves the player's coins into a variable and makes comparisons to decide which power-up they get.