Passed the whole board to instance.js so...

the .js can get the list of terrain pieces and # tiles. Also Refactored
function name in instance.js