fixed ready queue algorithm to actually check through all processes and put the right process first