Implement move[Right|Left]() with common moveHorizontally() function.