start implementation of marching squares