Fixed bugs on a few scripts and made the level scripts functional