Inspired by FlappyBird.