Animation system now working, and corrected Window size offset by the window borders

+ Bonus: More refactoring!