Updated rps.js