Fixed bug with reverting move

Bug occurs when reverting move while selected cell is not null