ball with user input merged and worked