At line 34 you set min equal to start. You then check if they are not equal at line 40. They will never not be equal. If you remove line 34 as suggested by Duoas, min will never be initialized to anything, and thus cannot be compared to start at line 40.