Minor fix with storing lastMove