psuedocode for Roundrobin added