Rock paper scissors variant using Javascript