Implemented multi-directional jumping.