A Bolton teenager has been cleared of manslaughter in a murder trial after a ruling by the judge