function to genereate random ball and move towards queen