Add swap two nearest gems