paintsq() and erasecell() completed