bugfix: prevent balls from getting outside the walls