implemented inputHandler and created Bird class.