-Reimplement outer layer function remove code repetition, lets merge the outerLayer and innerLayer in one function.
-Create an array of coordinates