Proper handling of player animations