Help with my game as it ends early

On the 3rd level (in the code) it ends earlier than expected for my upcoming project maz 2, can someone help me?

how does it end early?

NVM, I fixed it, it seemed that the power up in my game caused an early end for the game so I removed it for that level