This is a common game. I wanted to make a kind of IA with JS. I thought to do it like the IBM chess IA. But I wanted that it was more random. Then it was made, there's no movements predefined, no plays, it's only a kind of IA responding random to your movements.