added getSide to square