lights out game in JS