Update map.js

function get_occupants_cell(x, y) {
var occupants_row = occupants[y];
if (occupants_row === undefined) {
return undefined;
}
return occupants_row[x];
}