first take at light, more light challenge
change algorithm for square pattern as simple one was TLE <=> time limit exceeded