Create filter for offsetFromEnd

This fixes discardpile logic after taking the offsetFromEnd method off
of the discardPile object