I THINK I fixed the problem where it won't take away the amount of money you spent.
The original game is made by @Scratch7Gaming