OOps, just out for a quick 20 when halfway round my cassette starts moving around, very loose

slightly dodgy to change gear but steady ride hope without alarm in what gears I had! What do you reckon Daz, time for a new cassette and chain, done about 4,000 miles on this one?