Some kind of funny game in js