'use strict';

function makeString(foods) {
  return foods.toString();
}

function update () {
  var labelSprite = _.find(this.sprite.children, function(child) {
    return child instanceof Phaser.Text;
  });

  if (labelSprite) {
    labelSprite.setText(makeString(this.foods));
  }
}

var Plate = function Plate(foods, sprite) {
  this.foods = foods;
  this.sprite = sprite;
  update.call(this);
};

Plate.prototype.update = update;

module.exports = Plate;

@@ -56,17 +56,17 @@
 ods.
-toString(
+join('%5Cn'
 );%0A%7D
@@ -232,39 +232,106 @@
     
-labelSprite.setText(makeString(
+var label = makeString(this.foods);%0A    labelSprite.setText(label);%0A    labelSprite.y = 20 - 30 * 
 this
@@ -340,10 +340,15 @@
 oods
-))
+.length
 ;%0A  

Print foods in a vertical stack