Life game written in JS