Adding code for moves.