Once again, a thousand thanks for being so helpful. I have tried all of your solutions for hours and hours now and it's better than before but it doesn't fix the problem perfectly. I learned a lot from it though!
I have decided to change the concept of the game so now you can only jump 5 times per level so the problem I had is no longer a problem. The game is actually more fun this way
Thanks again, you're awesome!