First, if this is the code in its entirety, it doesn't look like the array munchie is allocated (eg munchie = new int[NUM_MUNCHIES] )
Second:




if ( munchie[i]>1 ){
//draw image
}