arrows up to jump right and left to move pumpkin goombas do not hurt you and you can not kill them.
p.s the game breaks if you jump on the side of a build or pipe