add test 5 function moveLeft, fix a bug in test 5 function moveRight