A contracting universe driven by two scalar fields