fix bug where last move is not returned