created ball controller