turned flappybird into correct MVC