Finished the moveRight() function