Solver for gameaboutsquares.com in Swift