Fixed const in addSquare