added a update method and flappy is now using only one canvas