Rewrited getLinks function and added some trigonometry to get diagonal links, also passed test: merges AND step with a link when its dragged on it