let point = { x: 0, y: 0 };
ctx.moveTo(points[0].x+cx, points[0].y+cy); for (let i=1; i < points.length; i++) { ctx.lineTo(points[i].x+cx, points[i].y+cy); } ctx.stroke();
let point = { x: 0, y: 0 }; for(i=0;i<=size;i++) { point.x= r * Math.cos(theta); point.y = r * Math.sin(theta); points.push(point); theta+= angle; }
let xCord,yCord; for(i=0;i<=size;i++) { xCord = r * Math.cos(theta); yCord = r * Math.sin(theta); points.push({x:xCord, y:yCord}); theta+= angle; }
const score = {visitors: 0, home: 0}; // This is okay score.visitors = 1; // This isn't allowed score = {visitors: 1, home: 1};