This can be fixed by using <= rather than == operator if pipe.centerx <= -600: pipes.remove(pipe) OR if pipe.right <= 0: pipes.remove(pipe)