Added state management, animations for race begin and end