Added round robin code, and fixed a couple of errors with syntax