gets last move