simulates a cube getting squashed