This is the javascript version of popular game