Hydrogel polymer that acts like a muscle