stores previous move