It repairs itself when you collect the brown squares. When you have full health, it stores the brown squares.