ECE-482 Reordered slow down if statement