Red ball is in a dark room, which is locked on all sides, out of which seems impossible. But there is one way out, and this will take to go through numerous gates before the main output will appear. Move the ball towards the green gate, go through them, wait for the emergence of new and then move there. Note that the blue balls are the enemy.