@Shaz @uwucandy
deploying into your own project basically places a copy of your project from the moment of deployment into the www folder and redirects the playtest into that folder, while the editor still uses the original structure. So anything you edit is still placed in the true area, but the playtest works on the old deployed copy and never uses the more current changes the editor does to the real project.
if nothing else has been done, you only need to delete the www folder and replace the package.json file with one from a new project (the wrong package.json is the reason for the redirect into the www folder).
Unfortunately because you said that you fixed it while loosing half of your project data, it is very likely that you did something else, overwriting files that had contained the old data instead of just repairing the redirect. If that is the case that data is truly lost, but I don't know if you did that.
I suggest you you make a copy of the project directory and try to repair that copy, then decide which case is better and has more data left.
The steps for repairing are:
1) delete the www foder
2) create a new project elsewhere
3) copy the correct package.json from the new project into the folder of the project to be repaired.
only try to repair a copy, not whatever you have as your current project.