changed rectange for check if ball viewed