implementation of the game, basic variant