Added implementation to move the characters