Move the conditional statement into the while loop so we don't have infinite loop. The problem was
while(currentChar != '*' && peerChar() != '/')
it is now
while(currentChar != '*' || peerChar() != '/')