follow the tutorial in implement life game in javascript