Understanding group behaviour during evacuations inside buildings