Stability of terrafix blocks under wave attack