logic game. part 1