add logic for doublejump