Harry, Ron and Hermione overhear that Ginny, Luna and Neville broke into Snape's office to steal the sword of Gryffindor