Yeah, there is a forEach below as well. Perhaps we could combine loops and call grid.add here instead of returning?