makes circles stay inside box