// One key thing with programming (particularly for games or similar things) // is to think about the "data structure" and have this data model separate // from the logic. MS = { initialize: function(boardSize) { MS.world = new Array(boardSize); for(var i=0;i