Conway's Game of Life setup for Code Attack in javascript