Separate generateHeart() from game.heart.regenerate() and move both to game.init(). Code style.