Sort:  

That's correct! And just a little further, what if Rg5 is played after your last move!?