Fixed a lot of stuff so the game can be compiled on the latest haxe version.

Also fixed a bug from the latest build
Merge branch 'master' of https://github.com/Matheus28/Pokemmo