Implementation of _jumpLeft and _jumpRight.