Adding bounds to check_angle