fixed swap issues

somehow processes' remaining_time was decrementing under 0 so then
isCompleted would never see that it is equal to 0

fix: put process removal at "beginning of quanta" (removed process
removal in the if statements) and only decrement remaining_time when it
is greater than 0 (2nd part is should not be necessary but you can never
be too safe)