Partially implement dropping and picking up items, and fix some memory issues in display_items
Fix expansion of xcalloc macro
Make display_items return a list of the selected items (leaving the doubly-linked list intact), and finish implementing dropping and picking up items