Is there any way to beat this?
Yes, there are multiple endings, but they are hard to find.
First hint: There are not only red and blue apples.