Ledyard wins Class M playoff berth