implements Square#setFlag