After a bit of testing I realized that the if statement whos condition was if the pixel was in queue is unnecessary. Its always true. I am stil experiencing an infinite loop if I double click a flood fill. What code I put in the prevent two from going on at once doesnt do anything