Fixed bug with modulo negative numbers not working. Create inBoxB function for detecting if a ball is in boxB