Added flip functionality for ducks.