var board = {}

board.createBoard = function() {
  walls = game.add.group();
  walls.enableBody = true;
  walls.physicsBodyType = Phaser.Physics.ARCADE;

  var c = walls.create(200, 200, 'firstaid');
  c.name = 'veg';
  c.body.immovable = true;
}

board.createTeleport = function() {
  starOne = game.add.sprite(10, game.world.height/2, 'star');
  starOne.anchor.setTo(0.5, 0.5);
  starOne.scale.setTo(1,1);

  starTwo = game.add.sprite(825, game.world.height/2, 'star');
  starTwo.anchor.setTo(0.5, 0.5);
  starTwo.scale.setTo(1,1);
}

board.createOneDot = function() {
    dot = game.add.sprite(Math.random()*700, Math.random()*500, 'diamond');
    dot.anchor.setTo(0.5, 0.5);
    dots.push(dot);
};

board.createMultipleDots = function(count) {
    for(var i = 0; i < count; i++){
    board.createOneDot();
  }
};

board.createPowerUp = function() {
  cherry = game.add.sprite(Math.random()*700, Math.random()*500, 'star');
  cherry.anchor.setTo(0.5, 0.5);
  powerUp.push(cherry);
};

// HARDCODED WALLS
// for (var i=0; i < 25; i++) {

  // //top border
  // wall = walls.create(0+i*32, 0, 'firstaid');
  // wall.body.immovable = true;

  // //left border
  // wall = walls.create(0, 25+i*20, 'firstaid');
  // wall.scale.setTo(1.5, 0.75);
  // wall.body.immovable = true;

  // //right border
  // wall = walls.create(750, 30+i*20, 'firstaid');
  // wall.scale.setTo(1.5, 0.75);
  // wall.body.immovable = true;

// }

// for (var i=0; i < 2; i++) {
//    //top right box (near border)
//   ledge = platforms.create(i*50+600, 100, 'platform');
//   ledge.scale.setTo(1.5, 0.75);
//   ledge.body.immovable = true;

//    //top left box (near border)
//   ledge = platforms.create(i*50+100, 100, 'platform');
//   ledge.scale.setTo(1.5, 0.75);
//   ledge.body.immovable = true;

//   //bottom right box
//   ledge = platforms.create(i*50+600, 400, 'platform');
//   ledge.scale.setTo(1.5, 0.75);
//   ledge.body.immovable = true;

//   //bottom left box
//   ledge = platforms.create(i*50+100, 400, 'platform');
//   ledge.scale.setTo(1.5, 0.75);
//   ledge.body.immovable = true;

//    //center box
//   ledge = platforms.create(i*50+350, 250, 'platform')
//   ledge.scale.setTo(1.5, 0.75);
//   ledge.body.immovable = true;

//   ledge = platforms.create(i*50+350, 275, 'platform')
//   ledge.scale.setTo(1.5, 0.75);
//   ledge.body.immovable = true;
// }

// //inner borders
// for (var i=0; i < 12; i++) {
//   //top right border
//   ledge = platforms.create(650, i*25+100, 'platform');
//   ledge.scale.setTo(1.5, 0.75);
//   ledge.body.immovable = true;

//   ledge = platforms.create(100, i*25+100, 'platform');
//   ledge.scale.setTo(1.5, 0.75);
//   ledge.body.immovable = true;
// }

@@ -568,70 +568,80 @@
 ) %7B%0A
-    dot = game.add.sprite(Math.random()*700, Math.random()*500
+%0A  for (var i = 45; i %3C= 800; i += 57) %7B%0A    dot = game.add.sprite(i, 53
 , 'd
@@ -682,16 +682,16 @@
 , 0.5);%0A
-
     dots
@@ -702,16 +702,21 @@
 h(dot);%0A
+  %7D%0A%0A
 %7D;%0A%0Aboar

add instructions for the game for both player1 and player2