forked from: [problem] Fix my marching squares?

