scala loop break