added prevMove field and methods