i1 = pd.self.r1
i2 = pd.self.b1
if(i1.overlaps(i2)):
self.create_canvas.move(self.b1, 135, 250)
This is just the part of code where I'm stuck.
I want to check whether the previous coin and the coin which moved now overlap. If they overlap, then the previous coin must move to its box back.