triangle in square problem