Create Video Games with Phaser.js Solution error

When I finish my lesson and my code is correct i click run and I get a X. So I view solution, and it is the same code I have with no errors. So I Replace with solution and everything is check marked as correct. Now I cut and copy the working solution that has been confirmed correct, reset the exercise, paste the same solution that gave me check marks. Now I get X again saying its incorrect.
What’s going on here?