Counter fixed. Next step - making @undo@ function and making log of the game.
On the way of history... (Windows)