Avoid the apple's with the worm, and make sure to use the left and right keys to navigate. You lose one apple for every worm apple you collect.