implement collision detection and pickups
adapt id refactoring