made rock paper scissors work with js