fixed bugs and bad code
Merge branch 'LevelEditor' of https://github.com/Tadimsky/vooga into LevelEditor