Added sendMoves method