bug fix for adding random square