my solution for the advanced jump game