function boid(sel, x, y, fill='black', scale=1){
let bo = sel.append('g') // make it a group
.append('polygon') // add a polygon
.attr('points', '0,-20 20,20 10,20 0,0 -10,20 -20,20') // trust me it's like a triangle thing
.attr('transform', `translate(${x},${y})`) // move the polygon to x, y
.style('fill', fill)
.append('circle') // add a circle in the middle
.attr({'cx': x, 'cy': y, 'r': 10, 'fill': 'blue'})
return bo;
}