Animation fix, cleanup, map depth fix.

Removed Animation class and replaced with a custom one
Cleaned up alot of code and weird function names
Added depth to map
few other little things