solve minor issue with lastMove