whenever grim flayer deals combat damage to a player, look at the top three cards of your library. put any number of them into your graveyard and the rest back on top of your library in any order.
delirium — grim flayer gets +2/+2 as long as there are four or more card types among cards in your graveyard.