Clone in JavaScript of the original game Three Points for iOS