A detenting device used in the form of a puzzle including magnets and balls using a nonmagnetic tube around which an annular tubular magnet surrounds the tube with one magnetic pole on the entire inside surface of the tubular magnet and the opposite magnetic pole on the entire outside surface of the magnet wherein the ball or other magnetically attracted body is positioned at either one end or at