I am creating a top down 2D randomly generated game in JavaScript. The game assigns each chunk a 1 dimensional array used to store the relative coordinates and values of it\'s c