Fix bug in pickup item code where you would pickup a duplicate item instead of the first item shown on the floor.