analog input issuses

hey so iv figured out that the problem is not hardware. its in the sketch. iv stared at it for hours and cant figure out what the problem is. can some one take a look?