check if the bird fly out of the world

Add code to bird.js's  update method to check if the bird fly out of the word.