This is the main function to draw a animation frame.  Currently there is a bug that the bird can't be cleared