Wrote a fillboard function for game of life in JavaScript