Next state prediction gives rise to entangled, yet compositional representations of objects