Redid Square class and squareStatus function