Today I played a game, and it was my turn in the endgame.
I had only one pawn, which is blocked, and my king left. But my king could move only to a single square legally, as it would otherwise be in check. However, on the next move of mine, I had to put my king back on the square that it came from. I had to repeat these moves 8 or 9 times, with no another moves available. My king was stuck within those 2 squares.
I was confused, and I still am. Eventually, my opponent promoted a pawn to a queen, and afterward, in 2-3 moves, he checkmated me.
Can anyone explain this type of situation? Is it stalemate, or something else?