complete function moveRight