Implemented the push up behavior and the swap method