created basic flappy functionality.