Prey reimplemented using a linked list