Corrected Logic

Corrected Logic for eaten apple check in the updateposition function. missed a few "(" and ")"