elegant way to prevent pickups crashing the game when overflowing. Also is more lightweight