A script to solve the challenge grid-wise.