Benjamin Hansen scorede sit første sæsonmål, da Haugesund hentede en 3-2-sejr over Sandefjord i overtiden.