Added gender structure. Refactored animation handling