changed variable in square class