Do you ever define original amount? I see the statement:

int amount, originalAmount,...

but nowhere do I see you actually assign a value to originalAmount. You could fix this with a simple...