Fikset IndexOutOfBounds handling i ballsCloseToObstacle