So i thought of this algorithm that consists of creating a counter that adds to itself the block size of a rect object + 1 and then draws another rect using the lead_x + counter. What this would do is that it would constantly add another block to the outermost side of the snake. But for some reason it's not working. Any explanation as to why and how I can make it work would leave me extremely grateful. Best of wishes.
if rectangle.colliderect(rectangle2):
counter += block_size + 1
lead_x2 = randint(100, 700)
lead_y2 = randint(100, 500)
velocity += 0.000002
pygame.draw.rect(gameDisplay, black, [lead_x + counter, lead_y, block_size, block_size])
pygame.draw.rect(gameDisplay, red, [lead_x2, lead_y2, block_size, block_size])
message_to_screen("You ate an apple.", red)