It isn't exactly like the movie but anyway, you have to destroy Jake Sulley's chamber thing so the Naa'vi won't have a leader and should pull back. In the next game YOU will be one of the Naa'vi and be fighting to destroy the humans' big ship thing before it crashes into the sacred Tree of Souls or something.