Update palsquare.cpp