Added hurt sound array to function